{% include 'head.html' %} {% include 'nav.html' %}

Settings

Current server configuration — read from the config file at startup.

{% for section in sections %}

{{ section.title }}

{% if section.description %}

{{ section.description }}

{% endif %}
{# ---- Standard field rows ---- #} {% for f in section.fields %}
{{ f.label }}
{% if f.sensitive %}
••••••••
{% elif f.type == "boolean" %}
{{ 'Enabled' if f.value else 'Disabled' }}
{% elif f.type == "list" %}
{% if f.value %} {% for item in f.value %}{{ item }}{% endfor %} {% else %} None {% endif %}
{% elif f.value is none or f.value == "" %}
Not set
{% else %}
{{ f.value }}
{% endif %} {% if f.description %}
{{ f.description }}
{% endif %}
{% endfor %} {# ---- Users section ---- #} {% if section.id == "users" and section.users %}
{% for u in section.users %} {% endfor %}
Username Full Name Role Avatar Channels
{{ u.username }} {{ u.full_name or '—' }} {% if u.admin %} Admin {% else %} User {% endif %} {% if u.avatar %}{{ u.avatar }}{% else %}—{% endif %} {% if u.notification_channels %} {% for ch in u.notification_channels %} {{ ch }} {% endfor %} {% else %}—{% endif %}
{% endif %} {# ---- Notification channels section ---- #} {% if section.id == "channels" %} {% for ch in section.channels %}
{{ ch.name }} {{ ch.type_label }}
{% for cf in ch.fields %}
{{ cf.label }} {% if cf.sensitive %} •••••••• {% elif cf.value is iterable and cf.value is not string %} {{ cf.value | join(', ') }} {% else %} {{ cf.value }} {% endif %}
{% endfor %}
{% endfor %} {% if not section.channels %}
No notification channels configured.
{% endif %} {% endif %} {# ---- Hosts section ---- #} {% if section.id == "hosts" %} {% if section.hosts %}
{% for h in section.hosts %} {% endfor %}
Host Watch DynDNS Owner Threshold config Channels
{{ h.name }} {{ h.owner or '—' }} {{ h.threshold_config or '—' }} {% if h.notification_channels %} {% for ch in h.notification_channels %} {{ ch }} {% endfor %} {% else %}—{% endif %}
{% else %}
No hosts defined in config.
{% endif %} {% endif %}
{# /section #} {% endfor %}
{# /settings-main #}
{# /settings-layout #}
{# /container #}