{% comment %} Fixed red badge that hangs off the top center of the page. Five trigger conditions (see ``system_warnings_banner`` in core_tags.py); precedence is config/security first, then host-health: * mode="unconfigured" — BASE_URL is not set. Always shown until the operator pins it explicitly, even when CSRF auto-derive or request-host fallback are keeping the server functional. * mode="unsafe" — server is in a non-subdomain SERVER_SECURITY_MODE. Archived content shares an origin with the admin UI. * mode="low_disk" — free space on DATA_DIR's filesystem is below 1GiB. Archive jobs will fail until the operator frees space. * mode="high_memory" — virtual memory utilization above 95%; one OOM-kill from a crash. * mode="high_load" — 15-min loadavg > 3 × cpu_count; saturated host. {% endcomment %} {% if mode == "low_disk" %} {% elif mode == "high_memory" %} {% elif mode == "high_load" %} {% elif mode == "unsafe" %} {% elif mode == "unconfigured" %} {% endif %}