diff options
author | Bruno Sarlo <bruno@bruno-laptop.(none)> | 2009-08-09 20:30:10 -0300 |
---|---|---|
committer | Bruno Sarlo <bruno@bruno-laptop.(none)> | 2009-08-09 20:30:10 -0300 |
commit | 5355093787212ee84624ed54e3e165ca7f156034 (patch) | |
tree | 4c88a9dcfae2f58bfc10bfffa249ed383c042f6b /templates | |
parent | f24631c7f0659a5c349dfb8b89f9862f9ecd03f7 (diff) | |
download | askbot-5355093787212ee84624ed54e3e165ca7f156034.tar.gz askbot-5355093787212ee84624ed54e3e165ca7f156034.tar.bz2 askbot-5355093787212ee84624ed54e3e165ca7f156034.zip |
Added revers urls for links to work with i18n.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/header.html | 22 |
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 %} |