summaryrefslogtreecommitdiffstats
path: root/templates/header.html
diff options
context:
space:
mode:
authorBruno Sarlo <bruno@bruno-laptop.(none)>2009-08-09 20:30:34 -0300
committerBruno Sarlo <bruno@bruno-laptop.(none)>2009-08-09 20:30:34 -0300
commitd93c8261fe3a16fd9232aab7fbed8718a41439cf (patch)
tree4c88a9dcfae2f58bfc10bfffa249ed383c042f6b /templates/header.html
parent29828442db7d97354d84be133fad6401d2c53223 (diff)
downloadaskbot-d93c8261fe3a16fd9232aab7fbed8718a41439cf.tar.gz
askbot-d93c8261fe3a16fd9232aab7fbed8718a41439cf.tar.bz2
askbot-d93c8261fe3a16fd9232aab7fbed8718a41439cf.zip
Added revers urls for links to work with i18n.
Diffstat (limited to 'templates/header.html')
-rw-r--r--templates/header.html22
1 files changed, 11 insertions, 11 deletions
diff --git a/templates/header.html b/templates/header.html
index c3f5cc89..5751bed0 100644
--- a/templates/header.html
+++ b/templates/header.html
@@ -7,12 +7,12 @@
<!--<div id="header">-->
{% if request.user.is_authenticated %}
<a href="/users/{{ request.user.id }}/{{ request.user.username }}/">{{ request.user.username }}</a> {% get_score_badge request.user %}
- <a href="/logout/">{% trans "logout" %}</a>
+ <a href="{% url logout %}">{% trans "logout" %}</a>
{% else %}
- <a href="/account/signin">{% trans "login" %}</a>
+ <a href="{% url user_signin %}">{% trans "login" %}</a>
{% endif %}
- <a href="/about">{% trans "about" %}</a>
- <a href="/faq">{% trans "faq" %}</a>
+ <a href="{% url about %}">{% trans "about" %}</a>
+ <a href="{% url faq %}">{% trans "faq" %}</a>
<!--</div>-->
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
@@ -27,15 +27,15 @@
<td width="77%" valign="bottom">
<div class="nav">
<div class="focus">
- <a id="nav_ask" href="/questions/ask/" class="special">{% trans "ask a question" %}</a>
+ <a id="nav_ask" href="{% url ask %}" class="special">{% trans "ask a question" %}</a>
</div>
- <a id="nav_questions" href="/questions/" >{% trans "questions" %}</a>
- <a id="nav_tags" href="/tags/">{% trans "tags" %}</a>
- <a id="nav_users" href="/users/">{% trans "users" %}</a>
- <!--<a id="nav_books" href="/books/">{% trans "books" %}</a>-->
- <a id="nav_badges" href="/badges/">{% trans "badges" %}</a>
- <a id="nav_unanswered" href="/questions/unanswered/">{% trans "unanswered questions" %}</a>
+ <a id="nav_questions" href="{% url questions %}" >{% trans "questions" %}</a>
+ <a id="nav_tags" href="{% url tags %}">{% trans "tags" %}</a>
+ <a id="nav_users" href="{% url users %}">{% trans "users" %}</a>
+ <!--<a id="nav_books" href="{% url books %}">{% trans "books" %}</a>-->
+ <a id="nav_badges" href="{% url badges %}">{% trans "badges" %}</a>
+ <a id="nav_unanswered" href="{% url unanswered %}">{% trans "unanswered questions" %}</a>
{% comment %}<!-- i think this needs to be removed -e.f. -->
{% if request.user.is_authenticated %}