{% with unassigned=tickets.unassigned %}
{% if unassigned|length > 0 %}
{% include 'helpdesk/tickets_table.html' with tickets=tickets.unassigned %}
{% endif %}
{% include 'helpdesk/tickets_table.html' with tickets=tickets.awaiting_handling %}
{% include 'helpdesk/tickets_table.html' with tickets=tickets.in_handling %}
{% include 'helpdesk/tickets_table.html' with tickets=tickets.handled %}
{% endwith %}