{# Queue display mode — review queue with inline transition actions #}

{{ title }}

{% if total > 0 %} {{ total }} {% endif %}
{# Metrics summary #} {% if metrics %}
{% for metric in metrics %}
{{ metric.value }}
{{ metric.label }}
{% endfor %}
{% endif %} {# Filter bar #} {% if filter_columns %}
{% for fc in filter_columns %} {% endfor %}
{% endif %} {# Queue items #} {% if items %}
{% for item in items %} {% set attn = item.get("_attention") if item.get is defined else none %}
{# Main content — clickable to navigate to detail #}
{{ item[display_key ~ "_display"] | default(item[display_key]) | default(item.id) }} {% for col in columns %} {% if col.type == "badge" and col.key != display_key %} {{ item[col.key] | default("") }} {% endif %} {% endfor %}
{% if attn %}

{{ attn.message }}

{% endif %} {# Show date columns as secondary info #} {% for col in columns %} {% if col.type == "date" and item[col.key] %} {{ col.label }}: {{ item[col.key] | timeago }} {% endif %} {% endfor %}
{# Inline transition action buttons #} {% if queue_transitions %}
{% for tr in queue_transitions %} {% if item.get(queue_status_field) != tr.to_state %} {% endif %} {% endfor %}
{% endif %}
{% endfor %}
{% if total > items | length %}

Showing {{ items | length }} of {{ total }}

{% endif %} {% else %}

{{ empty_message | default("Queue is empty.") }}

{% endif %}