{% load auth_notifications %} {% with unread_count=request.user|user_unread_notification_count %} {% if unread_count > 0 %} Notifications {{ unread_count }} {% else %} {% endif %} {% endwith %}