{% extends "snapadmin/dashboard.html" %} {% load i18n %} {% comment %} Fills the block hooks snapadmin/dashboard.html exposes for exactly this: folding a project's own session/facts into the shared dashboard shell without touching the package template. Used at "/" (RootView) for staff visitors — see demo/apps/shop/views.py:StaffDashboardView. {% endcomment %} {% block header_actions_extra %} {% if request.user.is_authenticated %} {% translate "Signed in as" %} {{ request.user.get_username }}
{% csrf_token %}
{% endif %} {% endblock %} {% block dashboard_extra_bottom %}
{% translate "Optional surfaces" %} ({{ demo_services_enabled_count }}/{{ demo_services|length }} {% translate "enabled" %})
{% for svc in demo_services %}
{{ svc.label }} {% if svc.enabled %}{% translate "ON" %}{% else %}{% translate "OFF" %}{% endif %}
{% endfor %}
{% endblock %}