{% extends "admin/base_site.html" %} {% load i18n static log daisy_theme %} {% block content %}

{% translate 'Welcome back,' %} {{ user.get_short_name|default:user.username }}!

{% translate 'Welcome to the administration dashboard. Select an application below to view or manage records.' %}

{% include "admin/includes/stats_cards.html" %}

{% daisy_icon "folder" "w-5 h-5 text-primary" %} {% translate 'Applications & Models' %}

{{ app_list|length }} {% translate 'apps' %}
{% for app in app_list %}
{% empty %}
{% daisy_icon "help-circle" "w-4 h-4" %} {% translate "You don’t have permission to view or edit anything." %}
{% endfor %}
{% if daisy_theme.SHOW_RECENT_ACTIONS %}

{% daisy_icon "edit" "w-5 h-5 text-secondary" %} {% translate 'Recent Actions' %}

{% if log_entries is not None %} {% get_admin_log 10 as admin_log for_user user %} {% endif %} {% if not admin_log %}

{% translate 'None available' %}

{% else %}
    {% for entry in admin_log %}
  • {% if entry.is_addition %} {% daisy_icon "plus" "w-2.5 h-2.5 text-white" %} {% elif entry.is_change %} {% daisy_icon "edit" "w-2.5 h-2.5 text-white" %} {% elif entry.is_deletion %} {% daisy_icon "trash" "w-2.5 h-2.5 text-white" %} {% endif %}
    {% if entry.is_deletion or not entry.get_admin_url %} {{ entry.object_repr }} {% else %} {{ entry.object_repr }} {% endif %}
    {{ entry.content_type.name }} • {{ entry.action_time|date:"Y/m/d H:i" }}
  • {% endfor %}
{% endif %}
{% endif %}
{% endblock %}