{% extends "course/course-base.html" %} {% load i18n %} {% load crispy_forms_tags %} {% block title %} {% trans "Manage Authentication Tokens" %}: - {{ relate_site_name }} {% endblock %} {% block content %}

{% trans "Manage Authentication Tokens" %}

{{ new_token_message }} {% if not tokens %}
{% trans "(No tokens have been created yet.)" %}
{% else %}
{% for token in tokens %} {% if token.revocation_time != None %} {% elif token.valid_until == None %} {% else %} {% endif %} {% endfor %}
{% trans "Token ID" %} {% trans "Role Restriction" %} {% trans "Description" %} {% trans "Created" %} {% trans "Valid until" %} {% trans "Last used" %} {% trans "Actions" %}
{% if token.revocation_time %} {{ token.id }} {% else %} {{ token.id }} {% endif %} {{ token.restrict_to_participation_role }} {% if token.revocation_time %} {{ token.description }} {% else %} {{ token.description }} {% endif %} {{ token.creation_time }}{% trans "Revoked" %} {{ token.revocation_time }}{% trans "Indefinitely" %}{{ token.valid_until }} {% if token.last_use_time %} {{ token.last_use_time }} {% else %} {% trans "(never used)" %} {% endif %} {% if token.revocation_time == None %} {% csrf_token %} {% endif %}
{% endif %}
{% crispy form %}
{% endblock %}