feat: Only display notification counter if there are notifications

This commit is contained in:
moanos [he/him] 2024-08-03 08:48:13 +02:00
parent 79406882ea
commit 07aa165115

View File

@ -23,7 +23,9 @@
<a href="{{ user.get_notifications_url }}">
<i class="fa fa-bell" aria-hidden="true"></i>
</a>
<span class="button__badge">{{ user.get_num_unread_notifications }}</span>
{% if user.get_num_unread_notifications > 0 %}
<span class="button__badge">{{ user.get_num_unread_notifications }}</span>
{% endif %}
</div>