allianceauth/allianceauth/templates/allianceauth/notifications_menu_item.html
Peter Pfeufer 20b959f273
[FIX] Make notification bell solid again
Looks much better
2023-12-10 14:12:12 +01:00

15 lines
450 B
HTML

{% load i18n %}
{% load auth_notifications %}
{% with unread_count=request.user|user_unread_notification_count %}
{% if unread_count > 0 %}
<a href="{% url 'notifications:list' %}">{% translate "Notifications" %}
<span class="badge">{{ unread_count }}</span>
</a>
{% else %}
<a href="{% url 'notifications:list' %}">
<i class="fa-solid fa-bell"></i>
</a>
{% endif %}
{% endwith %}