forked from Github-Mirrors/canaille
feat: show expired tokens on the token view page
This commit is contained in:
parent
d28e853b50
commit
cee7401e1d
1 changed files with 9 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue