API Tokens

{% include 'phoxtail_core/svgs/vpn_key.html' %} {{ tokens.paginator.count }} Token{{ tokens.paginator.count|pluralize }}
{% if can_manage_all %} All users {% else %} Your tokens {% endif %}
{% include 'phoxtail_tokens/admin/partials/searchbar.html' %} {% url 'access_tokens_management:admin_tokens_filters_form' as filters_url %} {% if can_create %} {% url 'access_tokens_management:admin_token_create_form' as create_url %} {% endif %}
{% if tokens %}
{% for t in tokens %} {% url 'access_tokens_management:admin_token_detail_form' t.uuid as detail_url %}

{{ t.name }}

{% include 'phoxtail_core/svgs/key.html' %} {{ t.prefix }}…{{ t.suffix }}
{% if can_manage_all %}
{% include 'phoxtail_core/svgs/user.html' %} {{ t.user.get_full_name|default:t.user.email }}
{% endif %}
{% include 'phoxtail_core/svgs/calendar.html' %} Created {{ t.created_at|date:"M j, Y" }}
{% include 'phoxtail_core/svgs/clock.html' %} {% if t.last_used_at %} Last used {{ t.last_used_at|date:"M j, Y H:i" }} {% else %} Never used {% endif %}
{% if t.expires_at %}
{% include 'phoxtail_core/svgs/calendar_lock.html' %} Expires {{ t.expires_at|date:"M j, Y" }}
{% endif %}
{% if t.revoked_at %}
Revoked
{% endif %}
{% endfor %}
{% else %}
{% include 'phoxtail_core/svgs/vpn_key.html' %}

No tokens found

{% if filter_count > 0 or filterset.form.search.value %} Try clearing your search or filters. {% elif can_create %} Click Create to mint your first API token. {% else %} You don't have permission to create tokens. {% endif %}

{% endif %}
{% include 'phoxtail_tokens/admin/partials/forms/navigate/paginator.html' with paginator=tokens %}