{% extends "aa_ticket/base.html" %} {% load i18n humanize aa_ticket %} {% block ticket_title %}{% translate "Overview" context 'aa_ticket' %}{% endblock %} {% block ticket_content %}

{% translate "Overview" context 'aa_ticket' %}

{% translate "Submit ticket" context 'aa_ticket' %}
{% for section in sections %}

{{ section.title }}

{{ section.count }} {% if section.count %}{% translate "View all" context 'aa_ticket' %}{% endif %}
{% if section.items %}
{% for ticket in section.items %}
{{ ticket.display_number }} {{ ticket.title }} {% if section.key == "own" and ticket.status == "in_progress" and ticket.last_reply_by_staff %} {% translate "Waiting for you" context 'aa_ticket' %} {% elif section.key == "mine" and not ticket.last_reply_by_staff %} {% translate "Waiting for you" context 'aa_ticket' %} {% endif %}
{{ ticket.department.name }} · {% if section.key != "own" %}{{ ticket.requester|display_name }} · {% endif %} {{ ticket.last_reply_at|naturaltime }}
{% include "aa_ticket/partials/priority_badge.html" %} {% include "aa_ticket/partials/status_badge.html" %} {% if section.key == "unclaimed" %}
{% csrf_token %}
{% endif %}
{% endfor %}
{% else %}

{{ section.empty }}

{% endif %}
{% endfor %} {% endblock %}