Disable button if no notifications
FossilOrigin-Name: 1456b994bb3d1bd152059f874616b941c42f304c291d7de14929c43b80d00d83
This commit is contained in:
parent
997cce08f6
commit
d789caec0a
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,10 @@
|
|||
<h1 class="text-header">Notifications</h1>
|
||||
<div class="menubar">
|
||||
<a class="btn btn-single btn-small" href="/notifications/clear">Clear notifications</a>
|
||||
[% IF notifs %]
|
||||
<a class="btn btn-single btn-small" href="/notifications/clear">Clear notifications</a>
|
||||
[% ELSE %]
|
||||
<span class="btn btn-single btn-small btn-disabled">Clear notifications</span>
|
||||
[% END %]
|
||||
</div>
|
||||
[% IF notifs %]
|
||||
[% FOREACH notif IN notifs %]
|
||||
|
|
Loading…
Reference in a new issue