{% extends "admin/layout.html" %} {% let active_page = "settings" %} {% block title %}{{ t.settings_title }}{% endblock %} {% block content %}

{{ t.settings_title }}

{{ t.settings_intro }}

{% if saved %}
{{ t.settings_saved }}
{% endif %} {% if let Some(message) = error %}
{{ message }}
{% endif %}

{{ t.settings_section_general }}

{{ t.settings_section_general_help }}

{{ t.settings_section_storage }}

{% if r2_enabled_checked %}{{ t.settings_status_enabled }}{% else %}{{ t.settings_status_disabled }}{% endif %}

{{ t.settings_r2_help }}

{{ t.settings_r2_migration_help }}

{% if r2_secret_configured %}{{ t.settings_secret_saved }}{% else %}{{ t.settings_secret_not_set }}{% endif %}

{% if r2_secret_configured %} {% endif %}

{{ t.settings_section_notifications }}

{% if client_notifications_checked %}{{ t.settings_status_enabled }}{% else %}{{ t.settings_status_disabled }}{% endif %}

{{ t.settings_section_notifications_help }}

Web Push / VAPID

{{ t.settings_vapid_warning }}

{{ t.settings_vapid_generate }} cargo run --bin generate_vapid

{% if vapid_private_key_configured %}{{ t.settings_secret_saved }}{% else %}{{ t.settings_secret_not_set }}{% endif %}

{% if vapid_private_key_configured %} {% endif %}
{{ t.settings_push_subscribers }} {{ push_subscribers.len() }}
{% if push_subscribers.is_empty() %}

{{ t.settings_push_no_subscribers }}

{% else %}
{% for subscriber in &push_subscribers %} {% endfor %}
{{ t.settings_push_client }} {{ t.settings_push_devices }} {{ t.settings_push_language }} {{ t.settings_push_updated }}
{{ subscriber.client_name }} {{ subscriber.device_count }} {{ subscriber.languages }} {{ subscriber.last_updated }}
{% endif %}

Telegram

{% if telegram_bot_token_configured %}{{ t.settings_secret_saved }}{% else %}{{ t.settings_secret_not_set }}{% endif %}

{% if telegram_bot_token_configured %} {% endif %}

{{ t.settings_section_captcha }}

{{ t.settings_section_captcha_help }}

{% if turnstile_secret_configured %}{{ t.settings_secret_saved }}{% else %}{{ t.settings_secret_not_set }}{% endif %}

{% if turnstile_secret_configured %} {% endif %}

{{ t.settings_section_oidc }}

{{ t.settings_section_oidc_help }}

{% if oidc_client_secret_configured %}{{ t.settings_secret_saved }}{% else %}{{ t.settings_secret_not_set }}{% endif %}

{% if oidc_client_secret_configured %} {% endif %}
{% endblock %}