mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-22 22:29:34 +00:00
Cleanup of templates to use {% url %} for locations, instead of using hardcoded locations
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user