{% load i18n %}

{% trans "API Keys" %}

{% blocktrans trimmed %} API Keys allow you to authenticate a client without providing your username and password. {% endblocktrans %}
{% trans "Prefix" %}
{% trans "Description" %}
{% for key in user.api_keys.all %} {% if not key.revoked %}
{{ key.prefix }}
{{ key.name }} {% if key.readonly %}({% trans "read-only" %}){% endif %}
{% endif %} {% endfor %}
{% if request.user.is_superuser %}
{% blocktrans trimmed %} You are creating an API Key for a superuser account. Such API keys cannot be made read only and will always have full access. Proceed with caution. {% endblocktrans %}
{% endif %}
{% trans "Add Key" %}
{% if not request.user.is_superuser %}
{% trans "Read only" %} {% endif %}