diff --git a/app/sso/templates/sso/lookup/user.html b/app/sso/templates/sso/lookup/user.html index 43616e6..1be602e 100644 --- a/app/sso/templates/sso/lookup/user.html +++ b/app/sso/templates/sso/lookup/user.html @@ -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 %} - -{% for acc in user.eveaccount_set.all %} - -{% for char in acc.characters.all %} - - - -{% endfor %} -{% endfor %} + + + + + {% for acc in user.eveaccount_set.all %} + {% if acc.characters.count %} + + {% for char in acc.characters.all %} + + + + + + + + {% endfor %} + {% endif %} + {% endfor %} +
Character NameCorp
Account {{ acc.api_user_id }}
{{ char.name }}{{ char.corporation }}
NameCorporationAllianceISKSPTraining
Account {{ acc.api_user_id }}
{{ char.name }}{{ char.corporation }}{% if char.corporation.alliance %}{{ char.corporation.alliance }}{% endif %}{{ char.balance|intcomma }} ISK{{ char.total_sp|intcomma }} SP{% if char.current_training %}{{ char.current_training.skill.name }} to Level {{ char.current_training.in_training }}{% endif %}
{% endif %}