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
This commit is contained in:
Adrian Holovaty 2005-07-19 21:39:52 +00:00
parent 3fc5294d2e
commit 43538e78eb
2 changed files with 2 additions and 2 deletions

View File

@ -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" />

View File

@ -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 %}