{# Sailfish DAG-run badge fragment. Designed to be ``{% include %}``-d from a customer-side template override (Airflow 2.5+ dagrun_macros hook), or fetched directly by the React UI on Airflow 3.x. Required context vars: dag_id, dag_run_id — identifying the run badge — payload from build_badge_context(), with keys: variant, label, bootstrap_class, capture_count, view_in_sailfish_url, count_clause connection_status — "connected" or "offline" #} {{ badge.label }} {% if badge.count_clause %} · {{ badge.count_clause }} {% endif %} {% if badge.view_in_sailfish_url %} View {% endif %} {% if connection_status != "connected" %} (offline) {% endif %}