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

{{ t('connections.heading') }}

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

{% if principal and principal.oversight %}

{{ t('connections.lede_oversight') }}

{% elif not (principal and principal.admin) %}

{{ t('connections.lede_member') }}

{% endif %} {% if may('connections:write') %}

{{ t('connections.register') }}

{% endif %}
{% if connections %} {% for row in connections %} {% endfor %}
{{ t('common.connection') }}{{ t('connections.identifiers') }} {{ t('connections.host_url') }} {{ t('connections.key_state') }}{{ t('connections.in_flight') }}
{{ row.connection_id }} {{ row.host_id }} / {{ row.partner_id }} / {{ row.user_id }} {{ row.host_url }} {{ row.key_state.value }}
{{ t('key_state.' ~ row.key_state.value) }}
{% set job = outstanding[row.connection_id] %} {% if job %}{{ job.action.value }}{% else %}—{% endif %}
{% else %} {% if principal and principal.admin %}

{{ t('connections.empty_admin') }} {{ t('connections.empty_admin_link') }}.

{% else %}

{{ t('connections.empty_member') }}

{{ t('connections.empty_member_why') }}

{{ t('connections.empty_member_where') }} {{ t('connections.empty_member_link') }}.

{% endif %} {% endif %}
{% endblock %}