{% 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. #} {% include "mini_buildd/includes/popup.html" %}
{# BLOCK 1: ADDON: Daemon Run Options && Setup #}
{% if mbd.daemon.is_alive %}
Daemon running (accepting incoming): You may want to stop beforehand (each setup calls will implicitly run stopped, discarding ongoing events every time)
{% endif %}
{# END BLOCK 1 #} {% if app_list %} {% for app in app_list %}
{% 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 }}

{{ 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 %}