Merge pull request #1867 from rjevnikar/commentOnlyDateFix

Only allow ifCanModify users to add dates on cards
This commit is contained in:
Lauri Ojansivu 2018-08-29 00:18:10 +03:00 committed by GitHub
commit 6928fd71a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,28 +36,32 @@ template(name="cardDetails")
if getReceived
+cardReceivedDate
else
a.js-received-date {{_ 'add'}}
if canModifyCard
a.js-received-date {{_ 'add'}}
.card-details-item.card-details-item-start
h3.card-details-item-title {{_ 'card-start'}}
if getStart
+cardStartDate
else
a.js-start-date {{_ 'add'}}
if canModifyCard
a.js-start-date {{_ 'add'}}
.card-details-item.card-details-item-due
h3.card-details-item-title {{_ 'card-due'}}
if getDue
+cardDueDate
else
a.js-due-date {{_ 'add'}}
if canModifyCard
a.js-due-date {{_ 'add'}}
.card-details-item.card-details-item-end
h3.card-details-item-title {{_ 'card-end'}}
if getEnd
+cardEndDate
else
a.js-end-date {{_ 'add'}}
if canModifyCard
a.js-end-date {{_ 'add'}}
.card-details-items
.card-details-item.card-details-item-members