Simplifies the two remaining templates (for grappelli support).
This commit is contained in:
@@ -1,12 +1,6 @@
|
|||||||
{% extends "admin/change_form.html" %}
|
{% extends "admin/change_form.html" %}
|
||||||
{% load i18n polymorphic_admin_tags %}
|
{% load polymorphic_admin_tags %}
|
||||||
|
|
||||||
{# fix breadcrumb #}
|
{% block breadcrumbs %}
|
||||||
{% block breadcrumbs %}{% if not is_popup %}{% breadcrumb_scope base_opts %}
|
{% breadcrumb_scope base_opts %}{{ block.super }}{% endbreadcrumb_scope %}
|
||||||
<div class="breadcrumbs">
|
{% endblock %}
|
||||||
<a href="../../../">{% trans "Home" %}</a> ›
|
|
||||||
<a href="../../">{{ app_label|capfirst|escape }}</a> ›
|
|
||||||
{% if has_change_permission %}<a href="../">{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %} ›
|
|
||||||
{% if add %}{% trans "Add" %} {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18" }}{% endif %}
|
|
||||||
</div>
|
|
||||||
{% endbreadcrumb_scope %}{% endif %}{% endblock %}
|
|
||||||
|
|||||||
@@ -1,12 +1,6 @@
|
|||||||
{% extends "admin/delete_confirmation.html" %}
|
{% extends "admin/delete_confirmation.html" %}
|
||||||
{% load i18n polymorphic_admin_tags %}
|
{% load polymorphic_admin_tags %}
|
||||||
|
|
||||||
{% block breadcrumbs %}{% breadcrumb_scope base_opts %}
|
{% block breadcrumbs %}
|
||||||
<div class="breadcrumbs">
|
{% breadcrumb_scope base_opts %}{{ block.super }}{% endbreadcrumb_scope %}
|
||||||
<a href="../../../../">{% trans "Home" %}</a> ›
|
{% endblock %}
|
||||||
<a href="../../../">{{ app_label|capfirst|escape }}</a> ›
|
|
||||||
<a href="../../">{{ opts.verbose_name_plural|capfirst }}</a> ›
|
|
||||||
<a href="../">{{ object|truncatewords:"18" }}</a> ›
|
|
||||||
{% trans 'Delete' %}
|
|
||||||
</div>
|
|
||||||
{% endbreadcrumb_scope %}{% endblock %}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user