{# Back to wherever the reader came from (server-derived from HX-Current-URL),
falling back to the queue on a deep link or any render that omits it. #}
{% set back = back_href|default('', true) or url_for('queue_view', name=name).path %}
{{ icon('chevron', 'w-4 h-4 rotate-90') }} {{ name }}
#{{ job_id }}
{% if job %}
{{ job.name }}
{# annotations ride inside the title group: badge-gap rule is gap-2 #}
{{ job.state }}{{ job.attempts_made }}×
{% endif %}
{# standalone page: the live flow fragment also OOB-updates the title pill above
(the accordion has no such pill, so it omits the OOB) #}
{% set standalone = true %}