summaryrefslogtreecommitdiffstats
path: root/client/components/cards/cardDate.jade
diff options
context:
space:
mode:
authorRyan Helsing <ryanhelsing@gmail.com>2017-03-18 18:49:39 -0400
committerRyan Helsing <ryanhelsing@gmail.com>2017-03-18 18:49:39 -0400
commitde10be6a21679ad6ea3a6d97506f84d32cc72d26 (patch)
tree1c34b9656a7df29857ca079cdd105585d9f61538 /client/components/cards/cardDate.jade
parentec9498fa627228bd411af6070645fa2ed7cd895d (diff)
downloadwekan-de10be6a21679ad6ea3a6d97506f84d32cc72d26.tar.gz
wekan-de10be6a21679ad6ea3a6d97506f84d32cc72d26.tar.bz2
wekan-de10be6a21679ad6ea3a6d97506f84d32cc72d26.zip
comment only working, naive implementation complete
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}}
+