summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-07-19 21:39:52 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-07-19 21:39:52 +0000
commit43538e78eb98966838168b9d9d84d5f6313e9277 (patch)
treef034f5815f141cea010473394692054be1265977
parent3fc5294d2eb0628091953055caf70f0b0e75fa23 (diff)
Fixed #59 -- Changed hard-coded references to password_change and logout in admin templates to add /admin/ prefix. Still hard-coded, but you can override it in custom templates if your URL structure is different
git-svn-id: http://code.djangoproject.com/svn/django/trunk@228 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/conf/admin_templates/base.html2
-rw-r--r--django/conf/admin_templates/logged_out.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/django/conf/admin_templates/base.html b/django/conf/admin_templates/base.html
index dc0b18faef..759b86de2c 100644
--- a/django/conf/admin_templates/base.html
+++ b/django/conf/admin_templates/base.html
@@ -20,7 +20,7 @@
{% block branding %}{% endblock %}
</div>
{% if not user.is_anonymous %}
- <div id="user-tools">Welcome, <strong>{% if user.first_name %}{{ user.first_name }}{% else %}{{ user.username }}{% endif %}</strong>. <br /><a href="/password_change/">Change password</a> / <a href="/logout/">Logout</a></div>
+ <div id="user-tools">Welcome, <strong>{% if user.first_name %}{{ user.first_name }}{% else %}{{ user.username }}{% endif %}</strong>. <br />{% block userlinks %}{% comment %}<a href="/admin/password_change/">Change password</a> / {% endcomment %}<a href="/admin/logout/">Log out</a>{% endblock %}</div>
{% endif %}
{% block nav-global %}{% endblock %}
<br class="clear" />
diff --git a/django/conf/admin_templates/logged_out.html b/django/conf/admin_templates/logged_out.html
index 3a11841248..30b80a78e2 100644
--- a/django/conf/admin_templates/logged_out.html
+++ b/django/conf/admin_templates/logged_out.html
@@ -4,6 +4,6 @@
<p>Thanks for spending some quality time with the Web site today.</p>
-<p><a href="/">Log in again</a></p>
+<p><a href="/admin/">Log in again</a></p>
{% endblock %}