mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-19 17:22:30 +02:00
15 lines
450 B
HTML
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 %}
|