summaryrefslogtreecommitdiffstats
path: root/client/components/sidebar/sidebarArchives.jade
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-08-28 12:15:29 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-08-28 12:15:29 +0200
commitdc3cbdd20e59c2cc92a4acfeb1230ce71ac4a7c1 (patch)
treed95ad91548aee35dd7bb3c26c4307edac73c903a /client/components/sidebar/sidebarArchives.jade
parent732aa5eccb7fc96b87104b53fbd579e7fe9e6e18 (diff)
downloadwekan-dc3cbdd20e59c2cc92a4acfeb1230ce71ac4a7c1.tar.gz
wekan-dc3cbdd20e59c2cc92a4acfeb1230ce71ac4a7c1.tar.bz2
wekan-dc3cbdd20e59c2cc92a4acfeb1230ce71ac4a7c1.zip
Hide feature non-member users can't use
Fixes #206 Fixes #244
Diffstat (limited to 'client/components/sidebar/sidebarArchives.jade')
-rw-r--r--client/components/sidebar/sidebarArchives.jade18
1 files changed, 10 insertions, 8 deletions
diff --git a/client/components/sidebar/sidebarArchives.jade b/client/components/sidebar/sidebarArchives.jade
index 2e42de6a..fdfd3798 100644
--- a/client/components/sidebar/sidebarArchives.jade
+++ b/client/components/sidebar/sidebarArchives.jade
@@ -5,12 +5,13 @@ template(name="archivesSidebar")
each archivedCards
.minicard-wrapper.js-minicard
+minicard(this)
- p.quiet
- a.js-restore-card Restore
- | -
- a.js-delete-card Delete
- if cardIsInArchivedList
- p.quiet.small (warning: this card is in an archived list)
+ if currentUser.isBoardMember
+ p.quiet
+ a.js-restore-card Restore
+ | -
+ a.js-delete-card Delete
+ if cardIsInArchivedList
+ p.quiet.small (warning: this card is in an archived list)
else
p.no-items-message No archived cards.
@@ -18,8 +19,9 @@ template(name="archivesSidebar")
ul.archived-lists
each archivedLists
li.archived-lists-item
- button.js-restore-list
- i.fa.fa-undo
+ if currentUser.isBoardMember
+ button.js-restore-list
+ i.fa.fa-undo
= title
else
li.no-items-message No archived lists.