{% extends "base.html" %} {% block title %}Tickets{% endblock %} {% block content %} {# ── stats bar ── #}
{{ tickets|length }} Total {% for val, label in statuses %} {{ counts.get(val, 0) }} {{ label }} {% endfor %}
{# ── filters ── #}
{% if projects %} {% endif %} {% if status_filter or priority_filter or search or project_filter %} Clear {% endif %}
{# ── ticket list ── #} {% if tickets %}
{% for ticket in tickets %}
#{{ ticket.id }} {{ ticket.status.value.replace('_', ' ') | title }}

{{ ticket.title }}

{{ ticket.description[:120] }}{% if ticket.description|length > 120 %}...{% endif %}

{{ ticket.priority.value | upper }} {% if ticket.project %} {{ ticket.project }} {% endif %} {% if ticket.assignee %} 👤 {{ ticket.assignee }} {% endif %} {{ ticket.created_at[:10] }}
{% endfor %}
{% else %}

No tickets found.

Create the first ticket
{% endif %} {% endblock %}