{% extends "admin/base_site.html" %} {% load i18n static adminflow_tags %} {% block bodyclass %}dashboard-page{% endblock %} {% block content %}

Good day, {{ user.get_username|capfirst }}

Here is a quick overview of your admin console.

{% get_user_stats as user_stats %}
group
{{ user_stats.total }} Total

{% translate "System Users" %}

check_circle {{ user_stats.active }}
cancel {{ user_stats.inactive }}
badge {{ user_stats.staff }}
shield_person {{ user_stats.superuser }}
{% get_system_stats as system_stats %}
database
check_circle Connected

{% translate "Database Engine" %}

{{ system_stats.db_engine }}

code
Python {{ system_stats.python_version }}

{% translate "Django Version" %}

v{{ system_stats.django_version }}

widgets
{{ system_stats.app_count }} {% translate "Apps" %}

{% translate "Registered Models" %}

{{ system_stats.model_count }}

{% get_admin_app_list as apps %} {% for app in apps %}
{% for model in app.models %}
{{ model|adminflow_icon }}
{{ model.name }}

Class: {{ model.object_name }}

{% if model.add_url %} add {% translate "Add" %} {% endif %} {% if model.admin_url %} visibility {% translate "View" %} {% endif %}
{% endfor %}
{% empty %}
inbox

{% translate "You don’t have permission to view or edit anything." %}

{% endfor %}

{% translate "Recent Activity" %}

{% load log %} {% get_admin_log 10 as admin_log for_user user %} {% if not admin_log %}

{% translate "No recent activity found." %}

{% else %}
    {% for entry in admin_log %}
  • {% if entry.is_addition %}add{% elif entry.is_change %}edit{% else %}delete{% endif %}
    {% if entry.is_deletion or not entry.get_admin_url %} {{ entry.object_repr }} {% else %} {{ entry.object_repr }} {% endif %}

    {% if entry.content_type %} {{ entry.content_type.name|capfirst }} {% else %} {% translate "Unknown content" %} {% endif %} · {% if entry.is_addition %}{% translate "Added" %}{% elif entry.is_change %}{% translate "Modified" %}{% else %}{% translate "Deleted" %}{% endif %}

    {% if entry.change_message %}

    {{ entry.change_message }}

    {% endif %}
  • {% endfor %}
{% endif %}
{% endblock %}