Merge branch 'fix-active-class' into 'master'

[FIX] Active class on notification icon

See merge request allianceauth/allianceauth!1724
This commit is contained in:
Ariel Rin 2025-05-24 04:00:59 +00:00
commit 7ca67ebaae

View File

@ -2,8 +2,8 @@
{% load navactive %}
{% load auth_notifications %}
<li class="nav-item {% navactive request 'notifications:' %}" id="menu_item_notifications">
<a class="nav-link" href="{% url 'notifications:list' %}">
<li class="nav-item" id="menu_item_notifications">
<a class="nav-link {% navactive request 'notifications:' %}" href="{% url 'notifications:list' %}">
{% with unread_count=request.user|user_unread_notification_count %}
<i class="fa-solid fa-bell{% if unread_count %} text-danger{% endif %}"></i>
{% endwith %}