summaryrefslogtreecommitdiffstats
path: root/client/components/cards/cardDate.jade
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2017-03-28 20:55:02 +0300
committerGitHub <noreply@github.com>2017-03-28 20:55:02 +0300
commit578619d409b4952da34ac5f286c4d80a14b2015d (patch)
tree8c5aec1191ff21975569432a3496dc581f2247b4 /client/components/cards/cardDate.jade
parent0c36f5f4c27dce6207b1d8093f387d6a55a6da02 (diff)
parente7fddc2bcb71fca3e806ac75280d5c81dfc1529e (diff)
downloadwekan-578619d409b4952da34ac5f286c4d80a14b2015d.tar.gz
wekan-578619d409b4952da34ac5f286c4d80a14b2015d.tar.bz2
wekan-578619d409b4952da34ac5f286c4d80a14b2015d.zip
Merge pull request #925 from rhelsing/comment-permissions
Comment permissions
Diffstat (limited to 'client/components/cards/cardDate.jade')
-rw-r--r--client/components/cards/cardDate.jade12
1 files changed, 9 insertions, 3 deletions
diff --git a/client/components/cards/cardDate.jade b/client/components/cards/cardDate.jade
index a2a28bbd..525f27ed 100644
--- a/client/components/cards/cardDate.jade
+++ b/client/components/cards/cardDate.jade
@@ -15,6 +15,12 @@ template(name="editCardDate")
button.js-delete-date.negate.wide.right.js-delete-date {{_ 'delete'}}
template(name="dateBadge")
- a.js-edit-date.card-date(title="{{showTitle}}" class="{{classes}}")
- time(datetime="{{showISODate}}")
- | {{showDate}}
+ if canModifyCard
+ a.js-edit-date.card-date(title="{{showTitle}}" class="{{classes}}")
+ time(datetime="{{showISODate}}")
+ | {{showDate}}
+ else
+ a.card-date(title="{{showTitle}}" class="{{classes}}")
+ time(datetime="{{showISODate}}")
+ | {{showDate}}
+