{% extends 'users/_user.html' %} {% load helpers %} {% block title %}API Tokens{% endblock %} {% block usercontent %}
{% for token in tokens %}
{% if token.is_expired %}
Expired
{% endif %} {{ token.key }}
Created: {{ token.created|date }}
Expires: {{ token.expires|default:"Never" }}
Write operations: {% if token.write_enabled %} Enabled {% else %} Disabled {% endif %}
{% if token.description %}
{{ token.description }} {% endif %}
{% endfor %}
{% endblock %}