{% 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 %} {% if app.mbd.setup %} {% endif %} {% endif %} {# END BLOCK 1 #} {% for model in app.models %} {# BLOCK 2: ADDON: Extra Sub Header && Setup #} {% if model.mbd %} {% if model.mbd.header %} {% endif %} {% if model.mbd.setup %} {% 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 }}
{% if mbd.daemon.is_alive %} Warning: The daemon is active!  It is recommended to {% mbd_api "deactivate" %} for extensive maintenance. {% else %} The daemon is inactive!  {% mbd_api "activate" name="Reactivate it" %} when done. {% endif %}
{% mbd_api app.mbd.setup %}

{{ model.mbd.header }}

{% mbd_api model.mbd.setup %}
{{ 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 %}