{# Status pill with HTMX polling while the scan is in flight. Once the endpoint responds with a terminal state (completed / failed) the hx-trigger attribute is absent and polling self-terminates. #} {% set status = scan.status.value %} {% if status in ("pending", "running") %} {% elif status == "completed" %} {% elif status == "failed" %} {% endif %} {{ status }}