From 15ea158c967089e2ff0bd3efd3839f51b281f50e Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Thu, 1 Dec 2005 06:52:16 +0000 Subject: [PATCH] Fixed #893 -- Admin 'change password' and 'log out' links no longer assume admin lives at '/admin/'. Thanks, deric@monowerks.com git-svn-id: http://code.djangoproject.com/svn/django/trunk@1521 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- AUTHORS | 1 + django/contrib/admin/templates/admin/base.html | 2 +- django/contrib/admin/templates/admin/change_form.html | 1 + django/contrib/admin/templates/admin/change_list.html | 1 + .../admin/templates/admin/delete_confirmation.html | 4 +--- django/contrib/admin/templates/admin/object_history.html | 2 +- .../contrib/admin/templates/admin_doc/bookmarklets.html | 2 +- django/contrib/admin/templates/admin_doc/index.html | 4 ++-- .../admin/templates/admin_doc/missing_docutils.html | 4 ++-- .../contrib/admin/templates/admin_doc/model_detail.html | 8 ++------ django/contrib/admin/templates/admin_doc/model_index.html | 4 ++-- .../admin/templates/admin_doc/template_detail.html | 3 ++- .../admin/templates/admin_doc/template_filter_index.html | 5 ++--- .../admin/templates/admin_doc/template_tag_index.html | 5 ++--- django/contrib/admin/templates/admin_doc/view_detail.html | 4 ++-- django/contrib/admin/templates/admin_doc/view_index.html | 5 ++--- 16 files changed, 25 insertions(+), 30 deletions(-) diff --git a/AUTHORS b/AUTHORS index 1c5db7f90a..f2578b6e06 100644 --- a/AUTHORS +++ b/AUTHORS @@ -43,6 +43,7 @@ answer newbie questions, and generally made Django that much better: Matt Croydon Jonathan Daugherty (cygnus) Jason Davies (Esaj) + deric@monowerks.com Jeremy Dunck Clint Ecker Baishampayan Ghose diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html index 0c0ae4aabd..fa0b2a9663 100644 --- a/django/contrib/admin/templates/admin/base.html +++ b/django/contrib/admin/templates/admin/base.html @@ -20,7 +20,7 @@ {% block branding %}{% endblock %} {% if not user.is_anonymous %} -
{% trans 'Welcome,' %} {% if user.first_name %}{{ user.first_name }}{% else %}{{ user.username }}{% endif %}.
{% block userlinks %}{% trans 'Change password' %} / {% trans 'Log out' %}{% endblock %}
+
{% trans 'Welcome,' %} {% if user.first_name %}{{ user.first_name }}{% else %}{{ user.username }}{% endif %}.
{% block userlinks %}{% 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 3378f6f1c1..8ef9b3da82 100644 --- a/django/contrib/admin/templates/admin/change_form.html +++ b/django/contrib/admin/templates/admin/change_form.html @@ -5,6 +5,7 @@ {% endblock %} {% block coltype %}{{ bound_manipulator.coltype }}{% endblock %} {% block bodyclass %}{{ app_label }}-{{ bound_manipulator.object_name.lower }} change-form{% endblock %} +{% block userlinks %}{% trans 'Change password' %} / {% trans 'Log out' %}{% endblock %} {% block breadcrumbs %}{% if not is_popup %}