summaryrefslogtreecommitdiffstats
path: root/client/components/cards/cardDetails.jade
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-09-06 03:42:43 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-09-06 03:54:36 +0200
commite964fbb5cc018f6978579274e41a4ad3d7c30378 (patch)
treed361c8382de2e3ccd2c9219b4d70d78ea869d281 /client/components/cards/cardDetails.jade
parentddb6b62f5355f1307996c7956f4bf494214b4b08 (diff)
downloadwekan-e964fbb5cc018f6978579274e41a4ad3d7c30378.tar.gz
wekan-e964fbb5cc018f6978579274e41a4ad3d7c30378.tar.bz2
wekan-e964fbb5cc018f6978579274e41a4ad3d7c30378.zip
Hide some disabled forms for anonymous board viewers
Fixes #288 Fixes #289 Fixes #290
Diffstat (limited to 'client/components/cards/cardDetails.jade')
-rw-r--r--client/components/cards/cardDetails.jade12
1 files changed, 7 insertions, 5 deletions
diff --git a/client/components/cards/cardDetails.jade b/client/components/cards/cardDetails.jade
index 497cdf64..9d2cbec7 100644
--- a/client/components/cards/cardDetails.jade
+++ b/client/components/cards/cardDetails.jade
@@ -23,16 +23,18 @@ template(name="cardDetails")
each members
+userAvatar(userId=this cardId=../_id)
| {{! XXX Hack to hide syntaxic coloration /// }}
- a.member.add-member.card-details-item-add-button.js-add-members(title="{{_ 'card-members-title'}}")
- i.fa.fa-plus
+ if currentUser.isBoardMember
+ a.member.add-member.card-details-item-add-button.js-add-members(title="{{_ 'card-members-title'}}")
+ i.fa.fa-plus
.card-details-item.card-details-item-labels
h3.card-details-item-title {{_ 'labels'}}
- a.js-add-labels(title="{{_ 'card-labels-title'}}")
+ a(class="{{#if currentUser.isBoardMember}}js-add-labels{{else}}is-disabled{{/if}}" title="{{_ 'card-labels-title'}}")
each labels
span.card-label(class="card-label-{{color}}" title=name)= name
- a.card-label.add-label.js-add-labels(title="{{_ 'card-labels-title'}}")
- i.fa.fa-plus
+ if currentUser.isBoardMember
+ a.card-label.add-label.js-add-labels(title="{{_ 'card-labels-title'}}")
+ i.fa.fa-plus
//- XXX We should use "editable" to avoid repetiting ourselves
if currentUser.isBoardMember