[FIX] Make notification bell solid again

Looks much better
This commit is contained in:
Peter Pfeufer 2023-12-10 14:12:12 +01:00
parent e16bb2a737
commit 20b959f273
No known key found for this signature in database
GPG Key ID: 6051D2C6AD4EBC27
3 changed files with 6 additions and 7 deletions

View File

@ -1,13 +1,12 @@
{% load i18n %}
{% 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 {% navactive request 'notifications:' %}" id="menu_item_notifications">
<a class="nav-link" href="{% url 'notifications:list' %}">
<span class="fa">
{% 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 %}
</span>
<span class="d-lg-none d-md-inline m-2">

View File

@ -27,7 +27,7 @@ $(function () {
`Notifications <span class="badge">${unreadCount}</span>`
);
} else {
innerHtml = '<i class="fa-regular fa-bell"></i>';
innerHtml = '<i class="fa-solid fa-bell"></i>';
}
$('#menu_item_notifications').html(

View File

@ -8,7 +8,7 @@
</a>
{% else %}
<a href="{% url 'notifications:list' %}">
<i class="fa-regular fa-bell"></i>
<i class="fa-solid fa-bell"></i>
</a>
{% endif %}
{% endwith %}