forked from Github-Mirrors/canaille

Previously we used the uid since we supposed this value was always valid, but some users user the mail attribute as the User RDN in their OpenLDAP installation, and do not have a uuid.
60 lines
2.2 KiB
HTML
60 lines
2.2 KiB
HTML
{% import "macro/table.html" as table %}
|
|
<table class="ui bottom attached table tokens">
|
|
<thead>
|
|
<tr>
|
|
<th>{% trans %}Token{% endtrans %}</th>
|
|
<th>{% trans %}Client{% endtrans %}</th>
|
|
<th>{% trans %}Subject{% endtrans %}</th>
|
|
<th>{% trans %}Created{% endtrans %}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for token in table_form.items_slice %}
|
|
<tr>
|
|
<td>
|
|
<a href="{{ url_for('oidc.tokens.view', token_id=token.token_id) }}">
|
|
{{ token.token_id }}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<a href="{{ url_for('oidc.clients.edit', client_id=token.client.client_id) }}">
|
|
{{ token.client.client_name }}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<a href="{{ url_for("account.profile_edition", identifier=token.subject.identifier) }}">
|
|
{{ token.subject.user_name[0] }}
|
|
</a>
|
|
</td>
|
|
<td>{{ token.issue_date }}</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<td colspan="4">
|
|
<div class="ui icon message">
|
|
<i class="exclamation icon"></i>
|
|
<div class="content">
|
|
{% if request.headers.get("Hx-Request") %}
|
|
<div class="header">
|
|
{% trans %}No item matches your request{% endtrans %}
|
|
</div>
|
|
<p>{% trans %}Maybe try with different criterias?{% endtrans %}</p>
|
|
{% else %}
|
|
<div class="header">
|
|
{% trans %}There is nothing here{% endtrans %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<th colspan="4">
|
|
{{ table.pagination(table_form) }}
|
|
</th>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|