Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
@adrianholovaty adrianholovaty authored
View
2  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" />
View
2  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 %}
Please sign in to comment.
Something went wrong with that request. Please try again.