summaryrefslogtreecommitdiffstats
path: root/client/components
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-08-29 00:18:10 +0300
committerGitHub <noreply@github.com>2018-08-29 00:18:10 +0300
commit6928fd71a9b5c49d4b110580626642fc5e4eda19 (patch)
tree214d5431b04da616d02174487e1fb950eb780e11 /client/components
parent70f37c55fdd501bc3dd5c0c706ac44edc70b1e71 (diff)
parent555d31cca6139538acdc677587d8e0054e3e2afe (diff)
downloadwekan-6928fd71a9b5c49d4b110580626642fc5e4eda19.tar.gz
wekan-6928fd71a9b5c49d4b110580626642fc5e4eda19.tar.bz2
wekan-6928fd71a9b5c49d4b110580626642fc5e4eda19.zip
Merge pull request #1867 from rjevnikar/commentOnlyDateFix
Only allow ifCanModify users to add dates on cards
Diffstat (limited to 'client/components')
-rw-r--r--client/components/cards/cardDetails.jade12
1 files changed, 8 insertions, 4 deletions
diff --git a/client/components/cards/cardDetails.jade b/client/components/cards/cardDetails.jade
index ad2044e8..10828445 100644
--- a/client/components/cards/cardDetails.jade
+++ b/client/components/cards/cardDetails.jade
@@ -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