{% extends "base.html" %} {% from "macros.html" import clipboard_button %} {% block title %}{{ site_name }}: {% trans %}API Keys{% endtrans %}{% endblock title %} {% block content %}
{# TRANS: This is a header for the page listing all of the external API keys for the app. Again, these are not CCP API keys. #}

{% trans %}API Keys{% endtrans %}

{% with %} {% if '-dev' in app_version %} {% set doc_url = "https://eve-srp.readthedocs.org/en/latest/api.html" %} {% else %} {% set doc_url = ("https://eve-srp.readthedocs.org/en/v" ~ app_version ~ "/api.html") %} {% endif %} {# TRANS: This is a chunk of text explaining what the purpose of the API keys are for. Please include the link in the text, with the special URL ("{{ doc_url }}") as well. #} {% trans doc_url=doc_url%}You can create API keys for this app's external API using the button below. This is unrelated to the official EVE API from CCP.{% endtrans %} {% endwith %}

{# TRANS: This is a heading in a table, for the column with the actual API keys (a long string of random letters and numbers). #} {# TRANS: This is a heading in a table of external API keys, for the date and time an API key was created. #} {# TRANS: This is a heading in a table of API keys, where there is a button to delete a specific API key for each row in this column. #} {% for key in current_user.api_keys %} {% else %} {% endfor %}
{% trans %}API Key{% endtrans %}{% trans %}Created{% endtrans %}{% trans %}Remove{% endtrans %}
{{ clipboard_button(key.hex_key, "bottom", "") }} {{ key.timestamp|datetimeformat(format='short') }}
{{ form.csrf_token }} {{ form.action(value='delete') }} {{ form.key_id(value=key.id) }}
{# TRANS: Text shown when there have been no API keys created for this user. #} {% trans %}No API keys have been created.{% endtrans %}
{{ form.csrf_token }} {{ form.action(value='add') }} {# TRANS: This is a button, that when clicked, will create an API key. #}
{% endblock content %}