{% extends "base.html" %} {% block title %}{{ t('access.title') }} — {{ connection.connection_id }} — painfree{% endblock %} {% block body %}

{{ t('connection_access.heading') }} {{ connection.connection_id }}

{{ t('connection_access.lede') }}

{% if granted %}

{{ t('connection_access.granted') }} {{ granted }}.

{% endif %} {% if revoked %}

{{ t('connection_access.revoked') }} {{ revoked }}, {{ t('connection_access.revoked_when') }}

{% endif %}
{% if grants %} {% for grant in grants %} {% endfor %}
{{ t('access.subject') }}{{ t('subject.level') }} {{ t('subject.carries') }}{{ t('subject.granted_by') }} {{ t('subject.since') }}
{{ grant.subject }} {{ grant.level.value }} {{ grant.scopes() | join(', ') }} {{ grant.granted_by }} {{ grant.created_at | moment }}
{% else %}

{{ t('connection_access.nobody') }}

{% endif %}

{{ t('connection_access.grant_access') }}

{% for row in subjects %} {% endfor %}

{{ t('connection_access.subject_note') }}

{{ t('connection_access.back') }} · {{ t('subject.all_users') }}

{% endblock %}