adjust count mechanism.

This commit is contained in:
2025-04-01 21:39:57 +01:00
parent d5b953475c
commit 1e372da57d

View File

@@ -33,10 +33,10 @@
<a class="nav-link text-dark" href="#" id="notificationDropdown" role="button" data-bs-toggle="dropdown"
aria-expanded="false">
<i class="bi bi-bell fs-5 position-relative">
{{ if gt (intVal .NotificationCount) 0 }}
{{ if gt ( .NotificationCount) 0 }}
<span
class="position-absolute top-0 start-0 translate-middle badge rounded-pill bg-warning text-dark badge-small">
{{ if gt (intVal .NotificationCount) 15 }}15+{{ else }}{{ .NotificationCount }}{{ end }}
{{ if gt (.NotificationCount) 15 }}15+{{ else }}{{ .NotificationCount }}{{ end }}
</span>
{{ end }}
</i>