Add some further details onto the user lookup page

This commit is contained in:
2011-12-06 18:06:36 +00:00
parent b69dd56e0a
commit 74b0a8910b

View File

@@ -1,5 +1,6 @@
{% extends "base.html" %} {% extends "base.html" %}
{% load humanize %}
{% load naturaltimediff %} {% load naturaltimediff %}
{% load installed %} {% load installed %}
{% load gargoyle_tags %} {% load gargoyle_tags %}
@@ -107,15 +108,25 @@
{% if user.eveaccount_set.all %} {% if user.eveaccount_set.all %}
<table> <table>
<tr><th>Character Name</th><th>Corp</th></tr> <thead>
{% for acc in user.eveaccount_set.all %} <tr><th>Name</th><th>Corporation</th><th>Alliance</th><th>ISK</th><th>SP</th><th>Training</th></tr>
<tr><th colspan=2>Account {{ acc.api_user_id }}</th></tr> </thead>
{% for char in acc.characters.all %} <tbody>
<tr><td><a href="{% url eve_api.views.eveapi_character char.id %}">{{ char.name }}</a></td> {% for acc in user.eveaccount_set.all %}
<td>{{ char.corporation }}</td> {% if acc.characters.count %}
</tr> <tr><th colspan=2>Account {{ acc.api_user_id }}</th></tr>
{% endfor %} {% for char in acc.characters.all %}
{% endfor %} <tr><td><a href="{% url eve_api.views.eveapi_character char.id %}">{{ char.name }}</a></td>
<td><a href="{% url eveapi-corporation char.corporation.id %}">{{ char.corporation }}</a></td>
<td>{% if char.corporation.alliance %}<a href="{% url eveapi-alliance char.corporation.alliance.id %}">{{ char.corporation.alliance }}</a>{% endif %}</td>
<td style="text-align: right;">{{ char.balance|intcomma }} ISK</td>
<td style="text-align: right;">{{ char.total_sp|intcomma }} SP</td>
<td>{% if char.current_training %}{{ char.current_training.skill.name }} to Level {{ char.current_training.in_training }}{% endif %}</td>
</tr>
{% endfor %}
{% endif %}
{% endfor %}
</tbody>
</table> </table>
{% endif %} {% endif %}