{% import "components.html" as c with context %}
{{ c.column_header(t.text("settings.title"), brand=true) }}
{% set icons = {"appearance": "sun-moon", "security": "key-round", "roles": "users", "accounts": "users", "oidc": "key-round"} %} {% for key in sections %}{% set icon_name = icons[key] %} {% call c.list_item(t.text("settings." ~ key), t.text("settings." ~ key ~ ".hint"), href="/settings/" ~ key, on=(section == key), extra_class="plain") %} {{ c.icon(icon_name) }} {% endcall %} {% endfor %}
{% if section in ("roles", "accounts", "oidc") %} {% include "settings_" ~ section ~ ".html" %} {% else %}
{{ c.column_header(t.text("settings." ~ section), back="/settings") }}
{% include "settings_" ~ section ~ ".html" %}
{% endif %}