{% load tz %}

Token Details

{% include 'phoxtail_core/svgs/vpn_key.html' %} {{ token.prefix }}…{{ token.suffix }}

{% include 'phoxtail_core/svgs/vpn_key.html' %} Identity

Name {{ token.name }}
Fingerprint {{ token.prefix }}…{{ token.suffix }}
{% if token.description %}
Description {{ token.description }}
{% endif %} {% if can_manage_all %}
Owner {{ token.user.get_full_name|default:token.user.email }}
{% endif %}

{% include 'phoxtail_core/svgs/lock.html' %} Scope & Expiry

Scopes {{ token.scopes|join:", " }}
Expires {% if token.expires_at %} {{ token.expires_at|date:"M j, Y" }} {% else %} Never {% endif %}

{% include 'phoxtail_core/svgs/clock.html' %} Activity

Created {{ token.created_at|date:"M j, Y H:i" }}
Last used {% if token.last_used_at %} {{ token.last_used_at|date:"M j, Y H:i" }} {% else %} Never {% endif %}
{% if token.revoked_at %}
Revoked {{ token.revoked_at|date:"M j, Y H:i" }}
{% endif %}
{% if can_revoke and token.is_active %}
{% include 'phoxtail_core/svgs/cancel.html' %}

Revoke Token

Any client or script using this token will stop working immediately. This action cannot be undone.

{% endif %}