{% extends "admin/index.html" %} {% load i18n %} {% block content %} {# Following 'div' is copied from upstream 'admin/index.html' (DRY -- but how, django?). #} {# Pseudo-Blocks via comments mark local changes/addons to ease occasional manual syncing with upstream. #} {# It *should* be in-sync with version of lowest upstream we support (as per debian/control). #} {# FUTURE: django 3.1 supports overwriting app_list.html, but this would still only be a tiny improvement. #}
{% if app_list %} {% for app in app_list %}
{# BLOCK 1: ADDON: Daemon Run Options && Setup #} {% if app.mbd %} {% endif %} {# END BLOCK 1 #} {% for model in app.models %} {# BLOCK 2: ADDON: Extra Sub Header && Setup #} {% if model.mbd %} {% if model.mbd.header %} {% endif %} {% endif %} {# END BLOCK 2 #} {% if model.admin_url %} {% else %} {% endif %} {# BLOCK 3: ADDON: Extra info && wizards after model name #} {% if model.mbd %} {% endif %} {# END BLOCK 2 #} {% if model.add_url %} {% else %} {% endif %} {% if model.admin_url %} {% if model.view_only %} {% else %} {% endif %} {% else %} {% endif %} {% endfor %}
{{ app.name }}

Consider using setup -- easier way to maintain, suitable for most configurations: Setup

{% if mbd.daemon.is_alive %}

Warning: The daemon is powered on!  It is recommended to power off for extensive maintenance.

{% endif %}

{{ model.mbd.header }}

{{ model.name }}{{ model.name }} {% mbd_model_stats model.mbd.class_path as stats %} ({{ stats.total }} {% if stats.active %} {{ stats.active }}{% endif %} {% if stats.prepared %} {{ stats.prepared }}{% endif %} {% if stats.removed %} {{ stats.removed }}{% endif %}) {% trans 'Add' %} {% trans 'View' %}{% trans 'Change' %} 
{% endfor %} {% else %}

{% trans "You don't have permission to view or edit anything." %}

{% endif %}
{% endblock content %}