{% extends "admin/index.html" %}{% load i18n %} {% block content %}

{% trans "Recent messages, comments, subscriptions and AI activity, together with site environment settings." %}

Wulver {{ wulver_version }} {% trans "Open site" %} ↗
{% if analytics_overview %}

{% trans "Site analytics" %}

{% trans "Last 14 days" %} · {{ analytics_overview.mode }}

{% if not analytics_overview.enabled %}

{% trans "Analytics collection is disabled." %}

{% endif %}
{% trans "Views today" %}{{ analytics_overview.today_views }}
{% trans "Visitors today" %}{{ analytics_overview.today_visitors }}
{% trans "Views in 30 days" %}{{ analytics_overview.month_views }}
{% trans "Average per day" %}{{ analytics_overview.average_views }}
{% trans "Views" %}{% trans "Unique visitors" %}
{% if analytics_overview.top_page %}

{% trans "Top page in 30 days" %}: {{ analytics_overview.top_page.path }} — {{ analytics_overview.top_page.views }}

{% endif %}
{% endif %} {% if dashboard_health.warnings %}

{% trans "Needs attention" %}

{% blocktrans with errors=dashboard_health.errors warnings=dashboard_health.warning_count %}Errors: {{ errors }} · Warnings: {{ warnings }}{% endblocktrans %}

{% trans "Run checks again" %}
{% for item in dashboard_health.warnings %} {% endfor %}
{% endif %}
{% for panel in activity_panels %}

{{ panel.title }} ({{ panel.count }})

{% if panel.attention_label %}{{ panel.attention_label }}: {{ panel.attention_count }}{% endif %} {% if panel.seen_token %}

{% trans "Review tracking is personal. Opening a list does not mark records as reviewed." %}

{% if panel.attention_count %}
{% csrf_token %}
{% endif %} {% endif %}
{% endfor %}
{% if overview_backups %}

{% trans "Backups" %}

{% if overview_backups.latest %}

{% trans "Latest backup" %}: {{ overview_backups.latest.created_at|date:"SHORT_DATETIME_FORMAT" }} — {{ overview_backups.latest.get_status_display }}

{% else %}

{% trans "No backups yet. Create a backup before making important changes." %}

{% endif %} {% if overview_backups.last_success %}

{% trans "Last completed backup" %}: {{ overview_backups.last_success.completed_at|default:overview_backups.last_success.created_at|date:"SHORT_DATETIME_FORMAT" }}

{% elif overview_backups.latest %}

{% trans "No completed backup is available." %}

{% endif %} {% if overview_backups.create_url %}{% trans "Create full backup" %}{% endif %}
{% endif %} {% if user.is_superuser %} {% if environment_refresh_after_reload %}

{% trans "Waiting for application reload. This page will refresh shortly." %}

{% endif %}
{% trans "Environment configuration" %}

{% if environment_local %}{% trans "Local development mode" %}{% else %}{% trans "DEBUG is disabled. Review production settings below." %}{% endif %}

{% trans "These checks describe the running application, not a complete production security audit." %}

{% csrf_token %}
{% for switch in environment_switches %}
{% if switch.help %}

{{ switch.help }}

{% trans "Local default" %}: {{ switch.local_default }} · {% trans "Production guidance" %}: {{ switch.production_default }}

{% endif %}
{% endfor %}
{% for field in environment_deployment_fields %} {% endfor %} {% if environment_basic_ready %}

{% trans "Basic production checks passed. Verify HTTPS, backups and deployment separately." %}

{% endif %} {% if environment_mail_console %}

{% trans "Email is printed to the console, not sent. Configure SMTP and EMAIL_BACKEND in .env before sending real email." %}

{% endif %}

{% trans "Console: displays email in the terminal without sending it. Recommended for local development." %}

{% trans "SMTP: sends real email. Configure the SMTP host, port, TLS, username, password and sender address below." %}

{% if environment_email_backend_external %}{% trans "Externally managed" %}{% endif %}

{% trans "Keys below show configuration presence only. Saved values are never displayed. Changes are saved together when you apply them." %}

{% for item in environment_keys %}
{% if item.production_checked and not item.production_ok %}⚠ {% trans "Development setting / review required" %}{% endif %} {% if item.configured %}✓ {% trans "Configured" %} {% if item.external %}{% trans "Externally managed" %}{% endif %} {% if item.clearable %}{% endif %} {% else %} {% if item.external %}{% trans "Externally managed" %}{% endif %} {% endif %}
{% endfor %}

{% trans "SECRET_KEY cannot be cleared: replacing it invalidates sessions and signed links. Manage rotation deliberately in .env." %}

{% trans "Runserver reloads automatically. Passenger requires explicit configuration; other servers require a manual restart." %}

{% trans "Restart mode" %}: {{ environment_restart_mode }}

{% trans "Applying changes and waiting for the server to restart…" %}

{% endif %}
{% include "unfold/helpers/history.html" %}
{% endblock %}