summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrjevnikar <email@email.com>2018-08-28 20:23:29 +0000
committerrjevnikar <email@email.com>2018-08-28 20:23:29 +0000
commit555d31cca6139538acdc677587d8e0054e3e2afe (patch)
tree5a1aef0160e5585841933604e7635ff4406ba219
parentc0df1dd4aa8b03d28d9f63cd62c9b910b6da3b2c (diff)
downloadwekan-555d31cca6139538acdc677587d8e0054e3e2afe.tar.gz
wekan-555d31cca6139538acdc677587d8e0054e3e2afe.tar.bz2
wekan-555d31cca6139538acdc677587d8e0054e3e2afe.zip
Only allow ifCanModify users to add dates (received, start, end, and due).
-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