{# Administration shell for the configuration editor. One page, three tabs: the editor (form / tree / raw, all over the same document model), the secrets tab (.env is write-only), and the version history. Tab switches re-render this whole root through HTMX so the address bar keeps a shareable URL, and the filter/search controls reload only ``#ce-list`` so typing never loses focus. #} {% set tab_titles = {'editor': _('Editor'), 'secrets': _('Secrets'), 'history': _('History')} %}

{{ _('Configuration editor') }}

{{ config_path }} {{ _('%(keys)s keys', keys=key_count or 0) }} {{ _('%(count)s tables', count=table_count or 0) }}
{% for name in tabs %} {% endfor %} {{ _('Reload history') }}
{% if error %}
{{ _('Error') }} — {{ error }}
{% endif %} {% if tab == 'secrets' %} {% include 'admin/config_editor_secrets.html' %} {% elif tab == 'history' %} {% include 'admin/config_editor_history.html' %} {% else %} {% include 'admin/config_editor_panel.html' %} {% endif %}