Adjust login/logout/profile urls to match djangos

This commit is contained in:
Michal Čihař 2012-02-29 14:54:19 +01:00
parent 71b352253a
commit de96367256
2 changed files with 4 additions and 4 deletions

View File

@ -30,10 +30,10 @@
<ul class="menu">
{% if user.is_authenticated %}
<li>{% blocktrans with user.get_full_name as name %}Logged in as <a href="/profile/">{{ name }}</a>{% endblocktrans %}</li>
<li><a href="/logout/">{% trans "Logout" %}</a></li>
<li>{% blocktrans with user.get_full_name as name %}Logged in as <a href="/accounts/profile/">{{ name }}</a>{% endblocktrans %}</li>
<li><a href="/accounts/logout/">{% trans "Logout" %}</a></li>
{% else %}
<li><a href="/login/">{% trans "Login" %}</a></li>
<li><a href="/accounts/login/">{% trans "Login" %}</a></li>
{% endif %}
</ul>

View File

@ -35,7 +35,7 @@
{% if user.is_authenticated %}
<input class="button" type="submit" value="{% trans "Save" %}" name="save" />
{% else %}
{% blocktrans %}<a href="/login/">Login</a> for saving translations.{% endblocktrans %}
{% blocktrans %}<a href="/accounts/login/">Login</a> for saving translations.{% endblocktrans %}
{% endif %}
<input class="button" type="submit" value="{% trans "Suggest" %}" name="suggest" />
</td></tr>