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 "Models" %}

-
-
- -
-
- {% else %} -

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

{{ site_header|default:_('Django administration') }}

+{% endblock %} + {% block nav-global %}{% endblock %} diff --git a/templates/admin/delete_selected_confirmation.html b/templates/admin/delete_selected_confirmation.html index 7f5f62ff..e74262cc 100644 --- a/templates/admin/delete_selected_confirmation.html +++ b/templates/admin/delete_selected_confirmation.html @@ -1,80 +1,56 @@ +{# Please keep this template in sync with django/contrib/admin one #} {% extends "admin/base_site.html" %} - {% load i18n l10n admin_urls static %} {% block extrahead %} {{ block.super }} {{ media }} - {# Make previous link works #} {% endblock %} +{% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} delete-confirmation delete-selected-confirmation{% endblock %} + {% block breadcrumbs %} - + {% endblock %} {% block content %} - {% if perms_lacking or protected %} - {% if perms_lacking %} -
-
- {% 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 %} -
-
- -
-
- {% endif %} - {% if protected %} -
-
- {% blocktrans %}Deleting the selected {{ objects_name }} would require deleting the following protected related objects:{% endblocktrans %} -
-
- -
-
- {% endif %} - {% else %} -
-
- {% 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 %} -
-
- {% for deletable_object in deletable_objects %} - - {% endfor %} -
-
{% csrf_token %} -
- {% for obj in queryset %} - - {% endfor %} - - - -
-
-
-
- {% endif %} +{% if perms_lacking %} +

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

+ +{% elif protected %} +

{% blocktrans %}Deleting the selected {{ objects_name }} would require deleting the following protected related objects:{% endblocktrans %}

+ +{% else %} +

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

{% trans "Objects" %}

+ {% for deletable_object in deletable_objects %} + + {% endfor %} +
{% csrf_token %} +
+ {% for obj in queryset %} + + {% endfor %} + + + + {% trans "No, take me back" %} +
+
+{% endif %} {% endblock %}