{% load i18n static %} {% if user.is_authenticated %} 0 %} onclick="notification_mark_as_read({{ notification.id }})" {% endif %} {% endfor %} data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> {% if user.unread_notifications.count > 0 %} {{ user.unread_notifications.count }} {% endif %} {% if user.notifications.count > 0 %}
{% else %}