summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/base.html
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-02-27 19:02:32 +0100
committerAurélien Bompard <aurelien@bompard.org>2013-02-27 23:38:36 +0100
commit07c1a4a2b4211c1975f9d641401636a8cbc35f9c (patch)
treec18e9a619552eb9a777a27b126ca9ca62624b25c /hyperkitty/templates/base.html
parent628d011c865da76054d6b72ddf3f0f5e7341f649 (diff)
downloadhyperkitty-07c1a4a2b4211c1975f9d641401636a8cbc35f9c.tar.gz
hyperkitty-07c1a4a2b4211c1975f9d641401636a8cbc35f9c.tar.xz
hyperkitty-07c1a4a2b4211c1975f9d641401636a8cbc35f9c.zip
Switch to the new-style "url" tag
Required by Django >= 1.5 https://docs.djangoproject.com/en/1.5/releases/1.5/
Diffstat (limited to 'hyperkitty/templates/base.html')
-rw-r--r--hyperkitty/templates/base.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/hyperkitty/templates/base.html b/hyperkitty/templates/base.html
index c564468..98450f5 100644
--- a/hyperkitty/templates/base.html
+++ b/hyperkitty/templates/base.html
@@ -25,28 +25,28 @@
<ul class="nav auth">
{% if user.is_authenticated %}
- <li><a class="mm_logout" href="{% url user_logout %}?next={% url root %}">Logout</a></li>
- <li><a href="{% url user_profile %}">{{ user.username }}</a></li>
+ <li><a class="mm_logout" href="{% url 'user_logout' %}?next={% url 'root' %}">Logout</a></li>
+ <li><a href="{% url 'user_profile' %}">{{ user.username }}</a></li>
{% else %}
- <li><a class="mm_user" href="{% url user_login %}?next={{next|default:request.path|urlencode}}">Login</a></li>
+ <li><a class="mm_user" href="{% url 'user_login' %}?next={{next|default:request.path|urlencode}}">Login</a></li>
{% if use_internal_auth %}
- <li><a href="{% url user_registration %}?next={{next|default:request.path|urlencode}}"> Sign Up </a></li>
+ <li><a href="{% url 'user_registration' %}?next={{next|default:request.path|urlencode}}"> Sign Up </a></li>
{% endif %}
{% endif %}
</ul>
- <a class="brand" href="{% url root %}">{{ app_name|title }}</a>
+ <a class="brand" href="{% url 'root' %}">{{ app_name|title }}</a>
<ul class="nav">
<li {% if all_lists %} class="active"{% endif %}>
- <a href="{% url root %}">All lists</a>
+ <a href="{% url 'root' %}">All lists</a>
</li>
{% if mlist %}
<li id="list_name" class="active">
- <a href="{% url list_overview mlist_fqdn=mlist.name %}">{{mlist.name}}</a>
+ <a href="{% url 'list_overview' mlist_fqdn=mlist.name %}">{{mlist.name}}</a>
</li>
{% endif %}