{% if srl %} {# ── Configured: info bar with details (active or paused) ─────── #} {% set is_active = srl.enabled %}
{{ service }} Rate Limit {% if is_active %} Active {% else %} Paused {% endif %}

{{ srl.limit }}

{{ srl.algorithm }} · {{ srl.key_strategy }}{% if srl.burst %} · +{{ srl.burst }} burst{% endif %}

{% if srl.exempt_routes %}
Exempt: {% for route in srl.exempt_routes %} {{ route }} {% endfor %}
{% endif %}
{# Enable / Disable toggle #} {% if is_active %} {% else %} {% endif %}
{% else %} {# ── Not configured: subtle control bar ───────────────────────── #}

{{ service }} rate limit is not configured

{% endif %}