{% extends "base.html" %} {% block title %}Notifications{% endblock %} {% block breadcrumb %} {% endblock %} {% block content %}

Notifications

Mark all as read
{% if search_query or type_filter %} Clear {% endif %}
{% if notifications %}
{% csrf_token %}
{% for notif in notifications %} {% endfor %}
Message Ticket Type Date Actions

{{ notif.title|striptags }}

{% if notif.message %}

{{ notif.message|striptags }}

{% endif %}
{% if notif.data.ticket_id %} Ticket #{{ notif.data.ticket_id }} {% else %} N/A {% endif %} {{ notif.type|title|cut:"_" }} {{ notif.created_at|timesince }} ago
{% if not notif.read_at %} Mark read {% endif %} {% if notif.data.ticket_id %} View {% endif %}
{% if page_obj.has_other_pages %}
{% if page_obj.has_previous %} Previous {% endif %}
{% for num in page_obj.paginator.page_range %} {% if num == page_obj.number %} {{ num }} {% elif num > page_obj.number|add:"-3" and num < page_obj.number|add:"3" %} {{ num }} {% endif %} {% endfor %}
{% if page_obj.has_next %} Next {% endif %}
{% endif %} {% else %}

No notifications found

{% if search_query or type_filter %} Try adjusting your search or filter. {% else %} You'll see notifications here when activity happens on your tickets. {% endif %}

{% endif %}
{% endblock %}