2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 05:25:42 +00:00

add notification counter to indicator

This commit is contained in:
Matthias
2021-11-30 16:56:55 +01:00
parent 5614fde368
commit 791da9b322
2 changed files with 12 additions and 6 deletions

View File

@ -75,8 +75,9 @@
<li class='nav-item me-2'>
<button data-bs-toggle="offcanvas" data-bs-target="#offcanvasRight" class='btn position-relative' title='{% trans "Show Notifications" %}'>
<span class='fas fa-bell'></span>
<span class="position-absolute top-100 start-100 translate-middle p-2 bg-danger border border-light rounded-circle d-none" id="notification-alert">
<span class="position-absolute top-100 start-100 translate-middle badge rounded-pill bg-danger d-none" id="notification-alert">
<span class="visually-hidden">{% trans "New Notifications" %}</span>
<span id="notification-counter">0</span>
</span>
</button>
</li>