summaryrefslogtreecommitdiffstats
path: root/client/components/cards/attachments.jade
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2020-01-05 21:28:14 +0200
committerLauri Ojansivu <x@xet7.org>2020-01-05 21:28:14 +0200
commitf6f7705f23ea18d7f1b8f8736b762eb89e00a3cf (patch)
treed1213a62330b38c1a293f39a8b5265deefff0535 /client/components/cards/attachments.jade
parent6209b792aa9548ba66691fcaa0033ec9c29a3c7c (diff)
downloadwekan-f6f7705f23ea18d7f1b8f8736b762eb89e00a3cf.tar.gz
wekan-f6f7705f23ea18d7f1b8f8736b762eb89e00a3cf.tar.bz2
wekan-f6f7705f23ea18d7f1b8f8736b762eb89e00a3cf.zip
Add Worker role.
This was originally added at Wekan v3.58, reverted at Wekan v3.60 because of bugs, and now after fixes added back. Thanks to xet7 ! Closes #2788
Diffstat (limited to 'client/components/cards/attachments.jade')
-rw-r--r--client/components/cards/attachments.jade26
1 files changed, 14 insertions, 12 deletions
diff --git a/client/components/cards/attachments.jade b/client/components/cards/attachments.jade
index 2a96f4f4..10b767f4 100644
--- a/client/components/cards/attachments.jade
+++ b/client/components/cards/attachments.jade
@@ -38,18 +38,20 @@ template(name="attachmentsGalery")
| {{_ 'download'}}
if currentUser.isBoardMember
unless currentUser.isCommentOnly
- 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'}}
+ unless currentUser.isWorker
+ 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
unless currentUser.isCommentOnly
- li.attachment-item.add-attachment
- a.js-add-attachment {{_ 'add-attachment' }}
+ unless currentUser.isWorker
+ li.attachment-item.add-attachment
+ a.js-add-attachment {{_ 'add-attachment' }}