diff --git a/templates/admin/app_index.html b/templates/admin/app_index.html index 99b16eb7..3c1738dc 100644 --- a/templates/admin/app_index.html +++ b/templates/admin/app_index.html @@ -1,38 +1,19 @@ -{% extends "admin/base_site.html" %} - +{# Please keep this template in sync with django/contrib/admin one #} +{% extends "admin/index.html" %} {% load i18n %} -{% block breadcrumbs %} -
-{% endblock %} +{% block bodyclass %}{{ block.super }} app-{{ app_label }}{% endblock %} -{% block content %} - {% if app_list %} -{% trans "You don't have permission to edit anything." %}
- {% endif %} +{% if not is_popup %} +{% block breadcrumbs %} + {% endblock %} +{% endif %} + +{% block sidebar %}{% endblock %} diff --git a/templates/admin/base_site.html b/templates/admin/base_site.html index 47043929..2399756c 100644 --- a/templates/admin/base_site.html +++ b/templates/admin/base_site.html @@ -1,7 +1,10 @@ +{# Please keep this template in sync with django/contrib/admin one #} {% extends "users/sidebar.html" %} -{% load static %} - {% block title %}{{ title }}{% endblock %} +{% block branding %} +{% blocktrans %}Deleting the selected {{ objects_name }} would result in deleting related objects, but your account doesn't have permission to delete the following types of objects:{% endblocktrans %}
+{% blocktrans %}Deleting the selected {{ objects_name }} would require deleting the following protected related objects:{% endblocktrans %}
+{% blocktrans %}Are you sure you want to delete the selected {{ objects_name }}? All of the following objects and their related items will be deleted:{% endblocktrans %}
+ {% include "admin/includes/object_delete_summary.html" %} +