mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-13 14:30:17 +02:00
[FIX] Make notification bell solid again
Looks much better
This commit is contained in:
parent
e16bb2a737
commit
20b959f273
@ -1,13 +1,12 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% 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 {% navactive request 'notifications:' %}" id="menu_item_notifications">
|
||||||
<a class="nav-link"
|
<a class="nav-link" href="{% url 'notifications:list' %}">
|
||||||
href="{% url 'notifications:list' %}">
|
|
||||||
<span class="fa">
|
<span class="fa">
|
||||||
{% with unread_count=request.user|user_unread_notification_count %}
|
{% with unread_count=request.user|user_unread_notification_count %}
|
||||||
<i class="fa-regular fa-bell{% if unread_count %} text-danger{% endif %}"></i>
|
<i class="fa-solid fa-bell{% if unread_count %} text-danger{% endif %}"></i>
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
</span>
|
</span>
|
||||||
<span class="d-lg-none d-md-inline m-2">
|
<span class="d-lg-none d-md-inline m-2">
|
||||||
|
@ -27,7 +27,7 @@ $(function () {
|
|||||||
`Notifications <span class="badge">${unreadCount}</span>`
|
`Notifications <span class="badge">${unreadCount}</span>`
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
innerHtml = '<i class="fa-regular fa-bell"></i>';
|
innerHtml = '<i class="fa-solid fa-bell"></i>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#menu_item_notifications').html(
|
$('#menu_item_notifications').html(
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{% url 'notifications:list' %}">
|
<a href="{% url 'notifications:list' %}">
|
||||||
<i class="fa-regular fa-bell"></i>
|
<i class="fa-solid fa-bell"></i>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user