{# pages/dashboard.html — dashboard with stats and recent activity #} {% extends "base.html" %} {% block title %}{{ title | default("Admin") }} — Dashboard{% endblock %} {% block content %}
{% for card in stat_cards %}
{{ card.title }}
{{ card.count }}
{% endfor %}

Recent Activity

{% if recent_audit %} {% for entry in recent_audit %}
{% if entry.action == 'CREATE' %} Created {% elif entry.action == 'UPDATE' %} Updated {% elif entry.action == 'DELETE' %} Deleted {% endif %}
{{ entry.user_email | default("System") }} {{ entry.action | lower }}d {{ entry.model_name }} #{{ entry.object_id }}
{{ entry.timestamp }}
{% endfor %} {% else %}

No recent activity

{% endif %}

Quick Actions

{% for registered in registered_models %} {{ registered.verbose_name_plural }} {% endfor %}
{% endblock %}