{% extends TICKETS_BASE_TEMPLATE %} {% load ticket_notifications_tags %} {% block title %}Ticket Notifications{% endblock %} {% block content %}

Notifications {% if unread_count %}{{ unread_count }} unread{% endif %}

Back to tickets {% if unread_count %}
{% csrf_token %}
{% endif %}
All Unread only
{% for n in notifications %}

{% if n.notification_type == 'ticket_assigned' %} New assignment {% elif n.notification_type == 'ticket_reassigned' %} Reassigned {% endif %} {{ n.message }}

{{ n.created_at|date:"d M Y, H:i:s" }} {% if n.actor %} ยท from {{ n.actor.first_name }} {{ n.actor.last_name }}{% endif %}
Open ticket {% if not n.is_read %}
{% csrf_token %}
{% endif %}
{% empty %}
No notifications.
{% endfor %}
{% if page_obj.has_other_pages %} {% endif %}
{% endblock %}