Show more details for the API keys on user lookup

This commit is contained in:
2010-10-28 10:24:25 +01:00
parent 7f8753d21f
commit dd3241c3c4

View File

@@ -1,5 +1,7 @@
{% extends "base.html" %} {% extends "base.html" %}
{% load naturaltimediff %}
{% block content %} {% block content %}
<h1>{{user.username}}'s Profile</h1> <h1>{{user.username}}'s Profile</h1>
@@ -40,14 +42,19 @@
<h2>Eve API Keys</h2> <h2>Eve API Keys</h2>
{% if user.eveaccount_set.all %} {% if user.eveaccount_set.all %}
<table> <table>
<tr><th>User ID</th><th>API Key</th><th>Description</th><th>Key Type</th><th>Active</th></tr> <thead>
<tr><th>User ID</th><th>API Key</th><th>Description</th><th>Type</th><th>Active</th><th>Last Updated</th></tr>
</thead>
<tbody>
{% for acc in user.eveaccount_set.all %} {% for acc in user.eveaccount_set.all %}
<tr><td>{{ acc.api_user_id }}</td> <tr><td>{{ acc.api_user_id }}</td>
<td>{{ acc.api_key }}</td> <td>{{ acc.api_key }}</td>
<td>{{ acc.description }}</td> <td>{{ acc.description }}</td>
<td>{{ acc.get_api_keytype_display }}</td> <td>{{ acc.get_api_keytype_display }}</td>
<td>{{ acc.get_api_status_display }}</td> <td>{{ acc.get_api_status_display }}</td>
<td>{{ acc.api_last_updated|naturaltimediff }}</td>
</tr> </tr>
</tbody>
{% endfor %} {% endfor %}
</table> </table>
{% endif %} {% endif %}