UI: Do not display notification settings

The notification settings are only usefull if there is a current user,
because the email address is required.
This commit is contained in:
Alexander Sulfrian 2016-04-13 16:32:55 +02:00
parent 0587158b6b
commit 7513520a9b

View file

@ -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}}"