{% extends "admin/base_site.html" %} {% load i18n static %} {% comment %} django-admin-home dashboard. Extra context (from django_admin_home.install.index): - admin_home_most_accessed: [{key,name,icon,url,parent,access_count}] - admin_home_favorite_cards: [{key,name,icon,url,parent}] - admin_home_show_welcome_banner: settings.ADMIN_HOME_SHOW_WELCOME_BANNER (default True; only an explicit False hides the "Hello, " banner) {% endcomment %} {% block extrastyle %}{{ block.super }} {% endblock %} {% block bodyclass %}{{ block.super }} dashboard admin-home-page{% endblock %} {% block content_title %}{% endblock %} {% block content %} {% trans "Favorites" as fav_label %} {% if admin_home_show_welcome_banner is not False %} {% blocktrans with name=request.user.first_name|default:request.user.get_username %}Hello, {{ name }}{% endblocktrans %} {% trans "Welcome back. Here are your most used shortcuts and favorites." %} {% endif %} {% if admin_home_favorite_cards %} {% trans "Favorites" %} {% for card in admin_home_favorite_cards %} {{ card.name }} {% if card.parent %}{{ card.parent }}{% endif %} {% endfor %} {% endif %} {% trans "Most accessed" %} {% if admin_home_most_accessed %} {% for card in admin_home_most_accessed %} {{ card.name }} {% if card.parent %}{{ card.parent }}{% endif %} {{ card.access_count }} {% endfor %} {% else %} {% trans "No accesses recorded yet. Browse the menus and your most used shortcuts will show up here." %} {% endif %} {% trans "All modules" %} {% trans "Compact" %} {% for app in admin_home_menu_tree %} {{ app.name }} {% for model in app.models %} {{ model.name }} {% endfor %} {% endfor %} {% endblock %} {% block sidebar %}{% endblock %}
{% trans "Welcome back. Here are your most used shortcuts and favorites." %}
{% trans "No accesses recorded yet. Browse the menus and your most used shortcuts will show up here." %}