mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 04:20:17 +02:00
[FIX] Active class on notification icon
This commit is contained in:
parent
54910746e3
commit
fa32f87a35
@ -2,8 +2,8 @@
|
|||||||
{% load navactive %}
|
{% load navactive %}
|
||||||
{% load auth_notifications %}
|
{% load auth_notifications %}
|
||||||
|
|
||||||
<li class="nav-item {% navactive request 'notifications:' %}" id="menu_item_notifications">
|
<li class="nav-item" id="menu_item_notifications">
|
||||||
<a class="nav-link" href="{% url 'notifications:list' %}">
|
<a class="nav-link {% navactive request 'notifications:' %}" href="{% url 'notifications:list' %}">
|
||||||
{% with unread_count=request.user|user_unread_notification_count %}
|
{% with unread_count=request.user|user_unread_notification_count %}
|
||||||
<i class="fa-solid fa-bell{% if unread_count %} text-danger{% endif %}"></i>
|
<i class="fa-solid fa-bell{% if unread_count %} text-danger{% endif %}"></i>
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user