{% from "macros.html" import job_row, jobs_head, empty_state, state_label with context %} {# Selection works in search results too (tick here, clear the search, bulk-act); same rule as the tab itself - everything but active is bulk-actionable. #} {% set bulk = state != 'active' %}
{{ jobs|length }} result{{ '' if jobs|length == 1 else 's' }} for “{{ query }} {% if exact %}· exact id match{% endif %} · scanned the most recent {{ scan_limit }} {{ state_label(state) }} jobs
{% if jobs %}{{ jobs_head(bulk) }}{% endif %} {% for j in jobs %}{{ job_row(name, j, j.state or state, bulk=bulk) }} {% else %}
{{ empty_state('search', 'No jobs match “' ~ query ~ '”') }}
{% endfor %}