{% extends "base.html" %} {% block content %} {# ── Page header ───────────────────────────────────────────────────── #}

Segments

Group users for use in flag targeting rules

{# ── Stats + Search row ─────────────────────────────────────────────── #} {% set total = segments | length %} {% set ns = namespace(included_total=0, excluded_total=0) %} {% for s in segments %} {% set ns.included_total = ns.included_total + (s.included | length) %} {% set ns.excluded_total = ns.excluded_total + (s.excluded | length) %} {% endfor %}
{# Stats — 3 cols on all sizes, sits left on lg+ #}
{{ total }}
Segments
{{ ns.included_total }}
Included
{{ ns.excluded_total }}
Excluded
{# Search — below stats on mobile, right side on lg+ #} {% if segments %}
{% endif %}
{# ── Segments table — ALWAYS rendered so #segment-table-body always exists ─ #}
{% include "partials/segment_rows.html" with context %}
Key Name Included Excluded Actions
{% endblock %}