"new-style" url tag (django 1.5)

This commit is contained in:
Thomas NOËL 2014-01-07 17:06:02 +01:00
parent 058a6252d8
commit 156261608b
2 changed files with 3 additions and 3 deletions

View File

@ -17,9 +17,9 @@
<dd>{{ value }}</dd>
{% endfor %}
</dl>
<p> <a href="{% url profiles_edit_profile %}">{% trans "Edit profile" %}</a></p>
<p> <a href="{% url "profiles_edit_profile" %}">{% trans "Edit profile" %}</a></p>
{% else %}
<p> <a href="{% url profiles_create_profile %}">{% trans "Create profile" %}</a></p>
<p> <a href="{% url "profiles_create_profile" %}">{% trans "Create profile" %}</a></p>
{% endif %}
</div>
<h3>{% trans "Credentials" %}</h3>

View File

@ -15,6 +15,6 @@
{% if user.is_staff %}
<a class="btn btn-success" id="users_admin" href="/users-admin/"><i class="icon-wrench"></i> Gestion des invit&eacute;s</a>
{% endif %}
<a class="btn" id="logout" href="{% url auth_logout %}"><i class="icon-off"></i> {% trans "Log out" %}</a>
<a class="btn" id="logout" href="{% url "auth_logout" %}"><i class="icon-off"></i> {% trans "Log out" %}</a>
{% endblock %}