{% extends "base.html" %} {% block content %}

Account

Username

{{ username | e }}

Sign out

API keys

{% if api_key_expiry_days %}

New keys expire after {{ api_key_expiry_days }} day{% if api_key_expiry_days != 1 %}s{% endif %}. You can hold {{ api_key_max }}.

{% else %}

New keys do not expire. You can hold {{ api_key_max }}.

{% endif %} {% if api_keys is none %}

No local account matches this session, so API keys cannot be stored.

{% else %}

Copy this key now. It will not be shown again.

{% for key in api_keys %} {% else %} {% endfor %}
Id Access Issued Expires
{{ key.id | e }} {% if key.readonly %}Read only{% else %}Read and write{% endif %} {{ key.time_issued | e }} {% if key.time_expiry %}{{ key.time_expiry | e }}{% else %}Never{% endif %}
No API keys yet.
{% if api_keys | length < api_key_max %}
{% else %}

Key limit reached. Revoke one to issue another.

{% endif %} {% endif %}
{% endblock %} {% block scripts %} {% if api_keys is not none %} {% endif %} {% endblock %}