{# Template variables: user - currently viewed user tokens - list of ApiToken entities #} {% block head_cells %} {% block head_cell_token %}{% endblock %} {% block head_cell_last_access %}{% endblock %} {% block head_cell_actions %}{% endblock %} {% endblock head_cells %} {% for token in tokens %} {% block token_cells scoped %} {% block token_cell_token %} {% endblock token_cell_token %} {% block token_cell_last_access %} {% endblock token_cell_last_access %} {% block token_cell_actions %} {% endblock token_cell_actions %} {% endblock token_cells %} {% endfor %}
{{ _('Token') }}{{ _('Last access') }}{{ _('Actions') }}
{{ token.name }} {{ h.render_datetime(token.last_access, with_hours=True) or _('Never') }} {% set action = h.url_for("user.api_token_revoke", id=user['name'], jti=token['id']) %}
{{ h.csrf_input() }}