{% extends "tungsten/layout/app.html" %} {% import "tungsten/components/ui.html" as ui %} {% block content %} {% set subheading = 'Tokens let other apps and scripts use the API as you. Treat them like passwords.' %} {% set breadcrumbs = [(__('Profile'), panel.url('profile')), (__('API tokens'), None)] %} {% include "tungsten/components/page-header.html" %}
{{ __('Copy your new token') }}
{{ __("It won't be shown again. Send it as: Authorization: Bearer
{{ plain }}
{{ t.name }}
{{ __('Created :date', date=t.created_at.strftime('%d %b %Y')) }} · {% if t.last_used_at %}{{ __('Last used :date', date=t.last_used_at.strftime('%d %b %Y %H:%M')) }}{% else %}{{ __('Never used') }}{% endif %} · {% if not t.expires_at %}{{ __('Never expires') }}{% elif t.expires_at <= now %}{{ __('Expired') }}{% else %}{{ __('Expires :date', date=t.expires_at.strftime('%d %b %Y')) }}{% endif %}
{% if options %}{{ __('No tokens yet.') }}
{% endif %} {% endcall %}