mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Show more details for the API keys on user lookup
This commit is contained in:
@@ -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 %}
|
||||||
|
|||||||
Reference in New Issue
Block a user