feat: show expired tokens on the token view page

This commit is contained in:
Éloi Rivard 2024-12-07 16:06:10 +01:00
parent d28e853b50
commit cee7401e1d
No known key found for this signature in database
GPG key ID: 7EDA204EA57DD184

View file

@ -89,11 +89,18 @@
</tr>
<tr>
<td>{{ _("Issue date") }}</td>
<td>{{ token.issue_date }}</td>
<td>{{ token.issue_date|datetimeformat }}</td>
</tr>
<tr>
<td>{{ _("Expiration date") }}</td>
<td>{{ token.expire_date }}</td>
<td>
{{ token.expire_date|datetimeformat }}
{% if token.is_expired() %}
<a class="item">
<div class="ui red horizontal label">{% trans %}This token has expired.{% endtrans %}</div>
</a>
{% endif %}
</td>
</tr>
<tr>
<td>{{ _("Revokation date") }}</td>