mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-16 07:50:16 +02:00
[CHANGE] Token Management template updated
This commit is contained in:
parent
234191218a
commit
f7e1d7c47e
@ -1,34 +1,49 @@
|
|||||||
{% extends "allianceauth/base-bs5.html" %}
|
{% extends "allianceauth/base-bs5.html" %}
|
||||||
|
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block page_title %}{% translate "Dashboard" %}{% endblock page_title %}
|
{% block page_title %}
|
||||||
|
{% translate "Token Management" %}
|
||||||
|
{% endblock page_title %}
|
||||||
|
|
||||||
|
{% block header_nav_brand %}
|
||||||
|
{% translate "Token Management" %}
|
||||||
|
{% endblock header_nav_brand %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h1 class="page-header text-center">{% translate "Token Management" %}</h1>
|
|
||||||
<div>
|
<div>
|
||||||
<table class="table table-aa" id="table_tokens" style="width: 100%;">
|
<p class="mb-3">
|
||||||
|
{% translate "This page is a best attempt, but backups or database logs can still contain your tokens. Always revoke tokens on https://community.eveonline.com/support/third-party-applications/ where possible."|urlize %}
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<table class="table" id="table_tokens" style="width: 100%;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{% translate "Scopes" %}</th>
|
<th>{% translate "Scopes" %}</th>
|
||||||
<th class="text-end">{% translate "Actions" %}</th>
|
<th class="text-end">{% translate "Actions" %}</th>
|
||||||
<th>{% translate "Character" %}</th>
|
<th>{% translate "Character" %}</th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for t in tokens %}
|
{% for t in tokens %}
|
||||||
<tr>
|
<tr>
|
||||||
<td style="white-space:initial;">{% for s in t.scopes.all %}<span class="badge bg-secondary">{{ s.name }}</span>{% endfor %}</td>
|
<td style="white-space:initial;">
|
||||||
|
{% for s in t.scopes.all %}
|
||||||
|
<span class="badge bg-secondary">{{ s.name }}</span>
|
||||||
|
{% endfor %}
|
||||||
|
</td>
|
||||||
|
|
||||||
<td nowrap class="text-end">
|
<td nowrap class="text-end">
|
||||||
<a href="{% url 'authentication:token_delete' t.id %}" class="btn btn-danger"><i class="fa-solid fa-trash-can"></i></a>
|
<a href="{% url 'authentication:token_delete' t.id %}" class="btn btn-danger"><i class="fa-solid fa-trash-can"></i></a>
|
||||||
<a href="{% url 'authentication:token_refresh' t.id %}" class="btn btn-success"><i class="fa-solid fa-rotate"></i></a>
|
<a href="{% url 'authentication:token_refresh' t.id %}" class="btn btn-success"><i class="fa-solid fa-rotate"></i></a>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>{{ t.character_name }}</td>
|
<td>{{ t.character_name }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
{% translate "This page is a best attempt, but backups or database logs can still contain your tokens. Always revoke tokens on https://community.eveonline.com/support/third-party-applications/ where possible."|urlize %}
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
||||||
@ -51,9 +66,10 @@
|
|||||||
var last = null;
|
var last = null;
|
||||||
api.column(grp, {page: 'current'})
|
api.column(grp, {page: 'current'})
|
||||||
.data()
|
.data()
|
||||||
.each(function (group, i) {
|
.each((group, i) => {
|
||||||
if (last !== group) {
|
if (last !== group) {
|
||||||
$(rows).eq(i).before(`<tr class="info"><td colspan="3">${group}</td></tr>`);
|
$(rows).eq(i).before(`<tr class="h5 table-primary"><td colspan="3">${group}</td></tr>`);
|
||||||
|
|
||||||
last = group;
|
last = group;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user