diff --git a/smash/web/templates/_base.html b/smash/web/templates/_base.html index 8ef39d68f454b93eabcd23aec0c819f42d1ee107..7b7ed0102042b8d368c411a65f28900c513612ea 100644 --- a/smash/web/templates/_base.html +++ b/smash/web/templates/_base.html @@ -131,16 +131,18 @@ desired effect <span class="label label-warning"> {{notifications.0}}</span> </a> <ul class="dropdown-menu"> - <li class="header"> You have {{notifications.0}} notifications </li> + <li class="header"> You have {{notifications.0}} notification(s): </li> <li> <!-- Inner Menu: contains the notifications --> <ul class="menu"> {% for notification in notifications.1 %} - <li><!-- start notification --> - <a href="{% url notification.type %}"> - <i class="fa {{notification.style}}"></i> {{ notification.title }}: {{ notification.count }} - </a> - </li> + {% if notification.count > 0 %} + <li><!-- start notification --> + <a href="{% url notification.type %}"> + <i class="fa {{notification.style}}"></i> {{ notification.title }}: {{ notification.count }} + </a> + </li> + {% endif %} {% endfor %} <!-- end notification --> </ul>