mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Add some further details onto the user lookup page
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% load humanize %}
|
||||
{% load naturaltimediff %}
|
||||
{% load installed %}
|
||||
{% load gargoyle_tags %}
|
||||
@@ -107,15 +108,25 @@
|
||||
|
||||
{% if user.eveaccount_set.all %}
|
||||
<table>
|
||||
<tr><th>Character Name</th><th>Corp</th></tr>
|
||||
<thead>
|
||||
<tr><th>Name</th><th>Corporation</th><th>Alliance</th><th>ISK</th><th>SP</th><th>Training</th></tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for acc in user.eveaccount_set.all %}
|
||||
{% if acc.characters.count %}
|
||||
<tr><th colspan=2>Account {{ acc.api_user_id }}</th></tr>
|
||||
{% for char in acc.characters.all %}
|
||||
<tr><td><a href="{% url eve_api.views.eveapi_character char.id %}">{{ char.name }}</a></td>
|
||||
<td>{{ char.corporation }}</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>
|
||||
{% endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user