Cleanup of templates to use {% url %} for locations, instead of using hardcoded locations

This commit is contained in:
2010-04-23 15:34:58 +01:00
parent c4631f3dbb
commit daaee6cc3c
22 changed files with 41 additions and 75 deletions

View File

@@ -8,7 +8,7 @@
<ul>
{% for user in users %}
<li><a href="/users/{{ user.name }}/">{{ user.name }}</a></li>
<li><a href="{% url sso.views.view_user user.name %}/">{{ user.name }}</a></li>
{% endfor %}
</ul>

View File

@@ -40,7 +40,7 @@
<table>
<tr><th>Character Name</th><th>Corp</th></tr>
{% for char in characters %}
<tr><td><a href="/profile/characters/{{ char.id }}/">{{ char.name }}</a></td>
<tr><td><a href="{% url sso.views.view_characters char.id %}/">{{ char.name }}</a></td>
<td>{{ char.corp }}</td>
</tr>
{% endfor %}

View File

@@ -3,7 +3,7 @@
{% block title %}User Lookup{% endblock %}
{% block content %}
<form action="/users/" method="post">
<form action="{% url sso.views.user_lookup %}" method="post">
<table>
{{ form.as_table }}
</table>