Re-add notification indicator

This commit is contained in:
Eli Ribble 2026-02-10 16:04:15 +00:00
parent 522727cd8f
commit c3e8bba822
No known key found for this signature in database

View file

@ -16,6 +16,24 @@
<span class="menu-text ms-2">Home</span>
</a>
</li>
<li>
<a href="/notification">
<div class="menu-icon"><i class="bi bi-bell"></i></div>
{{ if gt (len .Notifications) 0 }}
<span
class="position-absolute translate-middle badge rounded-pill bg-primary"
>
{{ if gt (len .Notifications) 99 }}
99+
{{ else }}
{{ len .Notifications }}
{{ end }}
<span class="visually-hidden">unread notifications</span>
</span>
{{ end }}
<span class="menu-text ms-2">Notifications</span>
</a>
</li>
<li>
<a href="/pool">
<div class="menu-icon"><i class="bi bi-water"></i></div>