Add a yes/no flag if the character has a API key or not

This commit is contained in:
2011-07-19 10:23:29 +01:00
parent ae3f5e5675
commit 41814f92e9
2 changed files with 3 additions and 3 deletions

View File

@@ -20,10 +20,10 @@
{% if view_members %}
<table>
<tr><th>Name</th><th>Join Date</th></tr>
<tr><th>Name</th><th>Join Date</th><th>API Key?</th></tr>
{% autopaginate members 10 %}
{% for char in members %}
<tr><td><a href="{% url eveapi-character char.id %}">{{ char.name }}</a></td><td>{{ char.corporation_date }}</td></tr>
<tr><td><a href="{% url eveapi-character char.id %}">{{ char.name }}</a></td><td>{{ char.corporation_date }}</td><td>{% if char.eveaccount_set.count %}Yes{% else %}<span style="color: red;">No</span>{% endif %}</td></tr>
{% endfor %}
</table>
{% paginate %}