{% extends "admin_app.html" %} {% from "library.j2" import showuri, form_button, standard_button, extract_circle_name, invite_type_description %} {% block head_lead %} {{ super() }} {% include "copy-snippet.html" %} {% endblock %} {% block content %}

{% trans %}View invitation{% endtrans %}

{{ form.csrf_token }}
{% trans %}Valid until{% endtrans %}
{{ invite.expires | format_date }}
{% trans %}{% endtrans %}
{% call showuri(invite.landing_page, id_="link-field") %}{% endcall %}
{% trans %}Invitation type{% endtrans %}
{% call invite_type_description(invite) %}{% endcall %}
{%- set ngroups = invite.group_ids | length -%} {%- if ngroups > 1 -%} {#- not supported via the web UI, but we should still display it properly -#}
{% trans %}Circles{% endtrans %}

{% trans %}Users joining via this invitation will be added to the following circles:{% endtrans %}

    {%- for group_id in invite.group_ids -%}
  • {%- call extract_circle_name(circle_map, group_id) -%}{%- endcall -%}
  • {%- endfor -%}
{%- else -%}
{% trans %}Circle{% endtrans %}
{%- if ngroups == 1 -%} {%- set group_id = invite.group_ids[0] -%} {%- call extract_circle_name(circle_map, group_id) -%}{%- endcall -%} {%- else -%} {% trans %}The user will not be added to any circle and will have no contacts.{% endtrans %} {%- endif -%}
{%- endif -%} {%- if invite.type_.value == "roster" -%}
{% trans %}Contact{% endtrans %}
{% trans peer_jid=invite.jid %}The user will get added as contact of {{ peer_jid }}.{% endtrans %}
{%- endif -%}
{% trans %}Created{% endtrans %}
{{ invite.created_at | format_date }}
{%- call form_button("remove_link", form.action_revoke, class="secondary danger") %}{% endcall -%} {%- call standard_button("back", url_for(".invitations"), class="primary") %} {% trans %}Back{% endtrans %} {%- endcall %}
{% endblock %}