{% extends "admin_app.html" %} {% from "library.j2" import showuri, form_button, standard_button %} {% 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 %}Link{% endtrans %}
{% call showuri(invite.landing_page) %}{% endcall %}
{% trans %}Reusability{% endtrans %}
{% if invite.reusable %}{% trans %}This invitation link can be used arbitrarily often, until it expires, is revoked or a server-wide user limit is reached.{% endtrans %}{% else %}{% trans %}This invitation link can only be used once and is then depleted.{% endtrans %}{% endif %}
{%- 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 -%}
  • {{ circle_map[group_id] | circle_name }}
  • {%- endfor -%}
{%- else -%}
{% trans %}Circle{% endtrans %}
{%- if ngroups == 1 -%} {%- set group_id = invite.group_ids[0] -%} {{ circle_map[invite.group_ids[0]] | circle_name }} {%- else -%} {% trans %}The user will not be added to any circle and will have no contacts.{% endtrans %} {%- endif -%}
{%- 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 %}