{% load i18n %} SnapAdmin Demo {% if not user.is_authenticated %} {# ── Anonymous → login ─────────────────────────────────────────────── #}

SnapAdmin Demo

{% trans "Sign in to explore the demo" %}

{% csrf_token %} {% if login_form.non_field_errors %}
{{ login_form.non_field_errors }}
{% endif %}

{% trans "This is a demo environment for django-snapadmin." %}

{% else %} {# ── Authenticated → app-shell ─────────────────────────────────────── #}
SnapAdmin Demo {% trans "Signed in as" %} {{ user.get_username }}
{% csrf_token %}
{# Overview #}

{% trans "Overview" %}

{{ stats|length }}
{% trans "Demo models" %}
{{ services_enabled_count }}
{% trans "Services enabled" %}
{% if user.is_staff %}
✓
{% trans "Staff access" %}
{% endif %}

{% blocktrans %}Welcome. Use the tabs above to see demo record counts, which optional SnapAdmin surfaces are enabled, and — for staff — links into the admin and the full system dashboard.{% endblocktrans %}

{# Stats #} {# API & Services #} {# Admin #}
{% endif %}