{% 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" %}
{% if error %}
{{ __(error) }}
{% endif %} {% if plain %}

{{ __('Copy your new token') }}

{{ __("It won't be shown again. Send it as: Authorization: Bearer ") }}

{{ plain }}
{% endif %} {% call ui.card(heading=__('Create a token'), icon_name='key-round') %}
{% if options %}
{{ __('What can it do?') }}
{% for value, label in options.items() %} {% endfor %}
{% endif %}
{% endcall %} {% call ui.card(heading=__('Your tokens')) %} {% if tokens %} {% else %}

{{ __('No tokens yet.') }}

{% endif %} {% endcall %}
{% endblock %}