{% extends "tlcc_auth/base_auth.html" %}
{% block title %}Tokens{% endblock %}
{% block content %}
<h1>Refresh tokens</h1>
<table>
<thead><tr><th>JTI</th><th>Created</th><th>Expires</th><th>Status</th><th></th></tr></thead>
<tbody>
{% for t in outstanding %}
<tr>
<td>{{ t.jti }}</td>
<td>{{ t.created }}</td>
<td>{{ t.expires_at }}</td>
<td>{% if t.jti in blacklisted_ids %}revoked{% else %}active{% endif %}</td>
<td>{% if not t.jti in blacklisted_ids %}<a href="{% url 'tlcc_auth:revoke-token' t.jti %}">Revoke</a>{% endif %}</td>
</tr>
{% empty %}
<tr><td colspan="5">No tokens</td></tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
