{% extends "mvp/account/base.html" %} {% load i18n %} {% block account.content %} {% url "account_api_tokens" as tokens_url %} {% comment %} `inline_actions` keeps the button beside the heading at every width, and the button's text on one line. {% endcomment %} {% if not at_limit %} {% endif %} {% if new_token %} {% endif %} {% if at_limit %} {% blocktrans trimmed count limit=token_limit %} You hold {{ limit }} token, the most this site allows. Revoke it before you create another. {% plural %} You hold {{ limit }} tokens, the most this site allows. Revoke one before you create another. {% endblocktrans %} {% endif %} {% if token_limit and tokens %} {% blocktrans trimmed with count=tokens|length limit=token_limit %} {{ count }} of {{ limit }} {% endblocktrans %} {% endif %} {% if tokens %} {% trans "Token" %} {% trans "Created" %} {% trans "Expires" %} {% trans "Actions" %} {% for token in tokens %} {{ token.token_key }}… {% if new_token.token_key == token.token_key %} {% trans "New" %} {% endif %} {% if token.expiry %} {% else %} {% trans "Never" %} {% endif %} {% blocktrans asvar revoke_label with token=token.token_key %}Revoke token {{ token }}…{% endblocktrans %} {% endfor %} {% trans "Only the first characters of each token are kept. Lost the rest of one? Revoke it and create another." %} {% else %} {% endif %} {% endblock account.content %}