diff options
author | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2016-04-13 16:32:55 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2016-04-21 20:35:26 +0200 |
commit | 7513520a9be9d4a40d6a5e9f82a0db5143ed03e9 (patch) | |
tree | aafbee38eb2c5eea1e7307444ddf42aed4dceb60 /client | |
parent | 0587158b6be930f53325baa54fccadc54d18c9a3 (diff) | |
download | wekan-7513520a9be9d4a40d6a5e9f82a0db5143ed03e9.tar.gz wekan-7513520a9be9d4a40d6a5e9f82a0db5143ed03e9.tar.bz2 wekan-7513520a9be9d4a40d6a5e9f82a0db5143ed03e9.zip |
UI: Do not display notification settings
The notification settings are only usefull if there is a current user,
because the email address is required.
Diffstat (limited to 'client')
-rw-r--r-- | client/components/boards/boardHeader.jade | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/client/components/boards/boardHeader.jade b/client/components/boards/boardHeader.jade index efc4fbe0..d44e318c 100644 --- a/client/components/boards/boardHeader.jade +++ b/client/components/boards/boardHeader.jade @@ -19,16 +19,17 @@ template(name="boardHeaderBar") i.fa(class="{{#if currentBoard.isPublic}}fa-globe{{else}}fa-lock{{/if}}") span {{_ currentBoard.permission}} - a.board-header-btn.js-watch-board - if $eq watchLevel "watching" - i.fa.fa-eye - span {{_ 'watching'}} - if $eq watchLevel "tracking" - i.fa.fa-bell - span {{_ 'tracking'}} - if $eq watchLevel "muted" - i.fa.fa-bell-slash - span {{_ 'muted'}} + if currentUser + a.board-header-btn.js-watch-board + if $eq watchLevel "watching" + i.fa.fa-eye + span {{_ 'watching'}} + if $eq watchLevel "tracking" + i.fa.fa-bell + span {{_ 'tracking'}} + if $eq watchLevel "muted" + i.fa.fa-bell-slash + span {{_ 'muted'}} .board-header-btns.right if isMiniScreen @@ -47,15 +48,16 @@ template(name="boardHeaderBar") i.fa(class="{{#if currentBoard.isPublic}}fa-globe{{else}}fa-lock{{/if}}") span {{_ currentBoard.permission}} - a.board-header-btn.js-watch-board( - title="{{_ watchLevel }}") - if $eq watchLevel "watching" - i.fa.fa-eye - if $eq watchLevel "tracking" - i.fa.fa-bell - if $eq watchLevel "muted" - i.fa.fa-bell-slash - span {{_ watchLevel}} + if currentUser + a.board-header-btn.js-watch-board( + title="{{_ watchLevel }}") + if $eq watchLevel "watching" + i.fa.fa-eye + if $eq watchLevel "tracking" + i.fa.fa-bell + if $eq watchLevel "muted" + i.fa.fa-bell-slash + span {{_ watchLevel}} a.board-header-btn.js-open-filter-view( title="{{#if Filter.isActive}}{{_ 'filter-on-desc'}}{{else}}{{_ 'filter'}}{{/if}}" |