From 04a110836d5949aadbb7809264ecc60e7051ee98 Mon Sep 17 00:00:00 2001 From: Gary Wilson Jr Date: Thu, 20 Sep 2007 06:59:13 +0000 Subject: [PATCH] Fixed #3491 -- Fixed links in `user-tools` section of admin's `base.html` template to use the `url` template tag. This also removes the need for child templates to override the block just to adjust the relative path. Thanks, saintsjd@gmail.com. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6391 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- .../admin/templates/admin/auth/user/change_password.html | 1 - django/contrib/admin/templates/admin/base.html | 9 ++++++++- django/contrib/admin/templates/admin/change_form.html | 1 - django/contrib/admin/templates/admin/change_list.html | 1 - .../admin/templates/admin/delete_confirmation.html | 1 - django/contrib/admin/templates/admin/object_history.html | 1 - .../contrib/admin/templates/admin_doc/bookmarklets.html | 1 - django/contrib/admin/templates/admin_doc/index.html | 1 - .../admin/templates/admin_doc/missing_docutils.html | 1 - .../contrib/admin/templates/admin_doc/model_detail.html | 1 - .../contrib/admin/templates/admin_doc/model_index.html | 1 - .../admin/templates/admin_doc/template_detail.html | 1 - .../admin/templates/admin_doc/template_filter_index.html | 1 - .../admin/templates/admin_doc/template_tag_index.html | 1 - .../contrib/admin/templates/admin_doc/view_detail.html | 1 - django/contrib/admin/templates/admin_doc/view_index.html | 1 - .../templates/registration/password_change_done.html | 1 - .../templates/registration/password_change_form.html | 1 - 18 files changed, 8 insertions(+), 18 deletions(-) diff --git a/django/contrib/admin/templates/admin/auth/user/change_password.html b/django/contrib/admin/templates/admin/auth/user/change_password.html index d9c1eae6372..28e342da86a 100644 --- a/django/contrib/admin/templates/admin/auth/user/change_password.html +++ b/django/contrib/admin/templates/admin/auth/user/change_password.html @@ -6,7 +6,6 @@ {% endblock %} {% block stylesheet %}{% admin_media_prefix %}css/forms.css{% endblock %} {% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %} -{% block userlinks %}{% trans 'Documentation' %} / {% trans 'Change password' %} / {% trans 'Log out' %}{% endblock %} {% block breadcrumbs %}{% if not is_popup %} {% if user.is_authenticated and user.is_staff %} -
{% trans 'Welcome,' %} {% if user.first_name %}{{ user.first_name|escape }}{% else %}{{ user.username }}{% endif %}. {% block userlinks %}{% trans 'Documentation' %} / {% trans 'Change password' %} / {% trans 'Log out' %}{% endblock %}
+
+ {% trans 'Welcome,' %} {% if user.first_name %}{{ user.first_name|escape }}{% else %}{{ user.username }}{% endif %}. + {% block userlinks %} + {% trans 'Documentation' %} + / {% trans 'Change password' %} + / {% trans 'Log out' %} + {% endblock %} +
{% endif %} {% block nav-global %}{% endblock %} diff --git a/django/contrib/admin/templates/admin/change_form.html b/django/contrib/admin/templates/admin/change_form.html index 7e7b639139c..49e709caf6c 100644 --- a/django/contrib/admin/templates/admin/change_form.html +++ b/django/contrib/admin/templates/admin/change_form.html @@ -7,7 +7,6 @@ {% block stylesheet %}{% admin_media_prefix %}css/forms.css{% endblock %} {% block coltype %}{% if ordered_objects %}colMS{% else %}colM{% endif %}{% endblock %} {% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %} -{% block userlinks %}{% trans 'Documentation' %} / {% trans 'Change password' %} / {% trans 'Log out' %}{% endblock %} {% block breadcrumbs %}{% if not is_popup %}