{% extends 'generic/object.html' %} {% load i18n %} {% load helpers %} {% load render_table from django_tables2 %} {% block title %}{% trans "Token" %} {{ object }}{% endblock %} {% block subtitle %}{% endblock %} {% block content %}
{% trans "Token" %}
{% trans "Key" %} {% if settings.ALLOW_TOKEN_RETRIEVAL %}{{ object.key }}{% else %}{{ object.partial }}{% endif %}
{% trans "User" %} {{ object.user }}
{% trans "Description" %} {{ object.description|placeholder }}
{% trans "Write enabled" %} {% checkmark object.write_enabled %}
{% trans "Created" %} {{ object.created|annotated_date }}
{% trans "Expires" %} {{ object.expires|placeholder }}
{% trans "Last used" %} {{ object.last_used|placeholder }}
{% trans "Allowed IPs" %} {{ object.allowed_ips|join:", "|placeholder }}
{% endblock %}