{% from 'components/macros_form.html' import form_error, render_field %} {% extends 'base.html' %} {% block header %}{% endblock %} {% block content %}
{% include 'components/menu_settings.html' %}

{% block title %}{{ _('Settings') }} / {{ _('Authentication') }} / {{ _('API keys list') }}{% endblock %}

{% if config.LOGIN_DISABLED %}
_('API keys are not available when login is disabled.')
{% elif current_user.is_authenticated %}
{# Table #} {% for apikey in apikeys %} {% endfor %}
{{ _('Name') }} {{ _('Created') }} {{ _('Last used') }}
{{ apikey.name }} {{ format_datetime(apikey.created) }} {{ format_datetime(apikey.last_used) if apikey.last_used is not none else _('Never') }}
{% endif %}
{% endblock %}