Disable button if no notifications

FossilOrigin-Name: 1456b994bb3d1bd152059f874616b941c42f304c291d7de14929c43b80d00d83
This commit is contained in:
nekobit 2022-08-11 03:28:12 +00:00
parent 997cce08f6
commit d789caec0a

View file

@ -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 %]