magic-removal: Fixed breadcrumb links for add forms in the admin system.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1895 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
3215cc769b
commit
8f42a92465
|
@ -9,7 +9,8 @@
|
|||
{% block userlinks %}<a href="../../../password_change/">{% trans 'Change password' %}</a> / <a href="../../../logout/">{% trans 'Log out' %}</a>{% endblock %}
|
||||
{% block breadcrumbs %}{% if not is_popup %}
|
||||
<div class="breadcrumbs">
|
||||
{% path_breadcrumbs path "Home" "1" "1" %}
|
||||
{% if add %}{% path_breadcrumbs path "Home" "1" "0" %}{% endif %}
|
||||
{% if change %}{% path_breadcrumbs path "Home" "1" "1" %}{% endif %}
|
||||
{% if add %}{% trans "Add" %} {{ bound_manipulator.verbose_name }}{% else %}{{ bound_manipulator.original|striptags|truncatewords:"18" }}{% endif %}
|
||||
</div>
|
||||
{% endif %}{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue