{% extends "base.html" %} {% block content %} {% set _colour = flag_type_colours.get(flag.type.value, 'slate') %} {# ── Breadcrumb ────────────────────────────────────────────────────── #}
Flags
{# ── Header ────────────────────────────────────────────────────────── #}

{{ flag.key }}

{{ flag.type.value }} {% if flag.enabled %} Enabled {% else %} Disabled {% endif %}
{# ── Tabs ──────────────────────────────────────────────────────────── #}
{# Overview #} {# Targeting #} {# Variations #} {# Settings #}
{# ── Overview panel ────────────────────────────────────────────── #}
{# Details card #}

Details

Type
{{ flag.type.value }}
Status
{{ 'Enabled' if flag.enabled else 'Disabled' }}
Off Variation
{{ flag.off_variation or '—' }}
Fallthrough
{% if flag.fallthrough is string %}{{ flag.fallthrough }} {% elif flag.fallthrough is iterable %}rollout {% else %}—{% endif %}
{% if flag.description %}
Description
{{ flag.description }}
{% endif %}
{# Counts card #}

Counts

Rules
{{ flag.rules | length }}
Variations
{{ flag.variations | length }}
Prerequisites
{{ flag.prerequisites | length }}
Individual Targets
{{ flag.targets | length }}
{# Variations summary table #}

Variations

{% if flag.variations %}
{% for v in flag.variations %} {% endfor %}
Name Value Description
{{ v.name }} {{ v.value }} {{ v.description or '—' }}
{% else %}

No variations defined.

{% endif %}
{# ── Targeting panel ───────────────────────────────────────────── #} {# ── Variations panel ──────────────────────────────────────────── #} {# ── Settings panel ────────────────────────────────────────────── #}
{% endblock %}