Re-add notification indicator
This commit is contained in:
parent
522727cd8f
commit
c3e8bba822
1 changed files with 18 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue