mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
71 lines
1.4 KiB
HTML
71 lines
1.4 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
|
|
<h1>{{user.username}}'s Profile</h1>
|
|
|
|
<b>Username:</b> {{ user.username }}<br/>
|
|
<b>Email:</b> {{ user.email }}<br/>
|
|
|
|
{% if is_admin %}
|
|
<br/>
|
|
<h2>Service Accounts</h2>
|
|
{% if services %}
|
|
<table>
|
|
<tr><th>Service</th><th>Username</th><th>Password</th><th>Active</th></tr>
|
|
{% for acc in services %}
|
|
<tr><td>{{ acc.service }}</td>
|
|
<td>{{ acc.service_uid }}</td>
|
|
<td>******</td>
|
|
<td>{{ acc.active }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endif %}
|
|
<br/>
|
|
<h2>Eve API Keys</h2>
|
|
{% if eveaccounts %}
|
|
<table>
|
|
<tr><th>User ID</th><th>API Key</th><th>Description</th><th>Active</th></tr>
|
|
{% for acc in eveaccounts %}
|
|
<tr><td>{{ acc.api_user_id }}</td>
|
|
<td>{{ acc.api_key }}</td>
|
|
<td>{{ acc.description }}</td>
|
|
<td>{{ acc.api_status_description }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endif %}
|
|
<br/>
|
|
{% if characters %}
|
|
<table>
|
|
<tr><th>Character Name</th><th>Corp</th></tr>
|
|
{% for char in characters %}
|
|
<tr><td><a href="/profile/characters/{{ char.id }}/">{{ char.name }}</a></td>
|
|
<td>{{ char.corp }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endif %}
|
|
|
|
<br/>
|
|
<h2>Reddit Accounts</h2>
|
|
{% if reddits %}
|
|
<table>
|
|
<thead>
|
|
<tr><th>Username</th><th>Created Date</th><th>Validated</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for acc in reddits %}
|
|
<tr><td>{{ acc.username }}</td>
|
|
<td>{{ acc.date_created }}</td>
|
|
<td>{% if acc.validated %}Yes{% else %}No{% endif %}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% endblock %}
|