Add more detail to the search results view

This commit is contained in:
2012-07-10 22:33:17 +01:00
parent 4a2ea74410
commit f32b62cbe0

View File

@@ -4,12 +4,21 @@
{% block content %} {% block content %}
<div class="page-header">
<h1>Search Results</h1>
</div>
<p>More than one user was found matching your criteria:</p> <p>More than one user was found matching your criteria:</p>
<ul> <table>
{% for user in users %} <thead>
<li><a href="{% url sso-viewuser user.username %}">{{ user.username }}</a></li> <tr><th>User</th><th>Primary Character</th><th>Corp</th><th>Alliance</th></tr>
{% endfor %} <thead>
</ul> <tbody>
{% for user in users %}
<tr><td><a href="{% url sso-viewuser user.username %}">{{ user.username }}</td>{% if user.get_profile.primary_character %}<td>{{ user.get_profile.primary_character }}</td><td>{{ user.get_profile.primary_character.corporation }}</td><td>{{ user.get_profile.primary_character.corporation.alliance }}</td>{% else %}<td></td><td></td><td></td>{% endif %}</tr>
{% endfor %}
</tbody>
</table>
{% endblock %} {% endblock %}