{# Live region for the flow detail. Same idiom as #workers-list (workers.html): a STABLE wrapper that carries the trigger and morphs its OWN inner HTML - it is never replaced, so its sse listener is registered once and stays. While the flow is live it re-fetches flow_body.html on each job event; gated on flow_live, so a flow that is already terminal when you open it never polls (and htmx tears the trigger down when you navigate away). Its id is the job's own: every open flow row carries a region, and htmx resolves an id selector document-wide, so with two rows open a shared id sent both refreshes into the first row. The id goes through `dom_id` because a custom job id can hold anything a selector cannot. #} {% if job and job.flow %}
{% include "partials/flow_body.html" %}
{% endif %}