{% from "macros.html" import badge, icon, state_color %}

{{ icon('queue', 'w-5 h-5') }} {{ q.name }} {% if q.paused %} paused {% endif %}

{% if q.paused %} {% else %} {% endif %}
{% for s in states %} {{ s }} {{ q.counts[s]|compact }} {% if s == state %} {% endif %} {% endfor %}
{{ icon('search', 'w-4 h-4') }} {{ icon('retry', 'w-3.5 h-3.5 animate-spin') }}
{# Shown by CSS (:has) only while a job row is open — the live table is paused so it can't move under you. Tells the operator why updates stopped (and how to resume). #}
{% with name = q.name %} {% if query %}{% include "partials/search_results.html" %}{% else %}{% include "partials/jobs.html" %}{% endif %} {% endwith %}
{% with name = q.name, schedulers = q.schedulers %}{% include "partials/schedulers.html" %}{% endwith %}