Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #59 -- Changed hard-coded references to password_change and log…

…out 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
  • Loading branch information...
commit 43538e78eb98966838168b9d9d84d5f6313e9277 1 parent 3fc5294
Adrian Holovaty authored July 19, 2005
2  django/conf/admin_templates/base.html
@@ -20,7 +20,7 @@
20 20
         {% block branding %}{% endblock %}
21 21
         </div>
22 22
         {% if not user.is_anonymous %}
23  
-        <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>
  23
+        <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>
24 24
         {% endif %}
25 25
         {% block nav-global %}{% endblock %}
26 26
         <br class="clear" />
2  django/conf/admin_templates/logged_out.html
@@ -4,6 +4,6 @@
4 4
 
5 5
 <p>Thanks for spending some quality time with the Web site today.</p>
6 6
 
7  
-<p><a href="/">Log in again</a></p>
  7
+<p><a href="/admin/">Log in again</a></p>
8 8
 
9 9
 {% endblock %}

0 notes on commit 43538e7

Please sign in to comment.
Something went wrong with that request. Please try again.