summaryrefslogtreecommitdiffstats
path: root/client/components/cards/attachments.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/attachments.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/attachments.jade')
-rw-r--r--client/components/cards/attachments.jade24
1 files changed, 13 insertions, 11 deletions
diff --git a/client/components/cards/attachments.jade b/client/components/cards/attachments.jade
index 783178e6..59eaf077 100644
--- a/client/components/cards/attachments.jade
+++ b/client/components/cards/attachments.jade
@@ -26,15 +26,17 @@ template(name="attachmentsGalery")
a.js-download(href="{{url download=true}}")
i.fa.fa-download
| {{_ 'download'}}
- if isImage
- a(class="{{#if $eq ../coverId _id}}js-remove-cover{{else}}js-add-cover{{/if}}")
- i.fa.fa-thumb-tack
- if($eq ../coverId _id)
- | {{_ 'remove-cover'}}
- else
- | {{_ 'add-cover'}}
- a.js-confirm-delete
- i.fa.fa-close
- | {{_ 'delete'}}
+ if currentUser.isBoardMember
+ if isImage
+ a(class="{{#if $eq ../coverId _id}}js-remove-cover{{else}}js-add-cover{{/if}}")
+ i.fa.fa-thumb-tack
+ if($eq ../coverId _id)
+ | {{_ 'remove-cover'}}
+ else
+ | {{_ 'add-cover'}}
+ a.js-confirm-delete
+ i.fa.fa-close
+ | {{_ 'delete'}}
- a.attachment-item.add-attachment.js-add-attachment {{_ 'add-attachment' }}
+ if currentUser.isBoardMember
+ a.attachment-item.add-attachment.js-add-attachment {{_ 'add-attachment' }}