summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-03-04 16:36:18 +0100
committerDan McGee <dan@archlinux.org>2011-03-04 16:36:18 +0100
commitc722d8bf9e2f647d5cd8fa3a85a17d0cb3b5b101 (patch)
tree2ac4fcf33d37786737a2664a96dd03f7961e8d80
parentf29700ce67ad323e8c68dacd776cf3e991721104 (diff)
downloadarchweb-c722d8bf9e2f647d5cd8fa3a85a17d0cb3b5b101.tar.gz
archweb-c722d8bf9e2f647d5cd8fa3a85a17d0cb3b5b101.tar.xz
Remove multiple account login/logout URLs
And slightly spruce up the logout template with a header. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--templates/base.html2
-rw-r--r--templates/registration/logout.html4
-rw-r--r--urls.py4
3 files changed, 4 insertions, 6 deletions
diff --git a/templates/base.html b/templates/base.html
index 03795dd..88bb341 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -44,7 +44,7 @@
title="arch-dev mailing list archives">Archives</a></li>
<li><a href="/mirrors/" title="Mirror server statistics">Mirrors</a></li>
<li><a href="/devel/profile/" title="Modify your account profile">Profile</a></li>
- <li><a href="/accounts/logout/" title="Logout of the developer interface">Logout</a></li>
+ <li><a href="/logout/" title="Logout of the developer interface">Logout</a></li>
</ul>
{% endif %}
</div><!-- #archdev-navbar -->
diff --git a/templates/registration/logout.html b/templates/registration/logout.html
index f8e0762..e890ce9 100644
--- a/templates/registration/logout.html
+++ b/templates/registration/logout.html
@@ -3,7 +3,9 @@
{% block content %}
<div id="dev-logout" class="box">
- <p>Logout successful.<p>
+ <h2>Developer Logout</h2>
+
+ <p>Logout was successful.<p>
</div>
{% endblock %}
diff --git a/urls.py b/urls.py
index 3608da6..3331926 100644
--- a/urls.py
+++ b/urls.py
@@ -42,12 +42,8 @@ urlpatterns += patterns('django.contrib.sitemaps.views',
urlpatterns += patterns('django.contrib.auth.views',
(r'^login/$', 'login', {
'template_name': 'registration/login.html'}),
- (r'^accounts/login/$', 'login', {
- 'template_name': 'registration/login.html'}),
(r'^logout/$', 'logout', {
'template_name': 'registration/logout.html'}),
- (r'^accounts/logout/$', 'logout', {
- 'template_name': 'registration/logout.html'}),
)
# Public pages