{% 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 #} {% comment %} .. attention:: Needs CSS fixup {% endcomment %}

Setup

{% if mbd.daemon.is_alive %}

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

{% endif %} {% mbd_get mbd.api.Setup.preset_saved as custom %} {% if custom.saved %} {% mbd_file content=custom.setup.command_line title="Current Setup" %} {% mbd_api_popup custom.setup name="Update" title="Re-run setup with the saved setup" %} {% else %} {% mbd_api_popup custom.setup name="Custom" title="" %} {% 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 %}