feat: Only display notification counter if there are notifications
This commit is contained in:
parent
79406882ea
commit
07aa165115
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user