{# ── Path ──────────────────────────────────────────────────────── #}
{{ state.path }} {% if state.force_active %} protected {% endif %}
{# ── Status badge ──────────────────────────────────────────────── #} {% if state.status == "active" %} Active {% elif state.status == "maintenance" %} Maintenance {% elif state.status == "disabled" %} Disabled {% elif state.status == "env_gated" %} Env Gated {% elif state.status == "deprecated" %} Deprecated {% else %} {{ state.status | upper }} {% endif %} {# ── Reason ────────────────────────────────────────────────────── #} {{ state.reason or "—" }} {# ── Environments ──────────────────────────────────────────────── #} {% if state.allowed_envs %}
{% for env in state.allowed_envs %} {{ env }} {% endfor %}
{% else %} {% endif %} {# ── Actions ───────────────────────────────────────────────────── #} {% if state.force_active %} Protected {% else %}
{# Action buttons — each opens the custom action modal #}
{% if state.status != "active" %} {% endif %} {% if state.status != "maintenance" %} {% endif %} {% if state.status != "disabled" %} {% endif %}
{# Schedule window — collapsible form #} {% if state.status != "maintenance" %}
Schedule window
{% endif %}
{% endif %}