{% extends "invite.html" %} {% set body_id = "invite" %} {% from "library.j2" import form_button, clipboard_button, render_errors %} {% block head_lead %} {% trans site_name=config["SITE_NAME"] %}Successfully registered on {{ site_name }} | Snikket{% endtrans %} {%- include "copy-snippet.html" -%} {% endblock %} {% block content %}

{% trans site_name=config["SITE_NAME"] %}Successfully registered on {{ site_name }}{% endtrans %}

{% trans logo_url=url_for("static", filename="img/snikket-logo-text.svg") %}Powered by Snikket{% endtrans %}

{% trans site_name=config["SITE_NAME"], jid=jid %}Congratulations! You successfully registered on {{ site_name }} as {{ jid }}.{% endtrans %}

{%- call clipboard_button(jid, show_label=True) -%} {% trans %}Copy address{% endtrans %} {%- endcall -%}

{% trans %}You can now set up your legacy XMPP client with the above address and the password you chose during registration.{% endtrans %}

{% trans login_url=url_for('main.login') %}You can now safely close this page, or log in to the web portal to manage your account.{% endtrans %}

{% if migration_success %}

{% trans %}Import successful{% endtrans %}

{% trans %}Congratulations! Your account data has been successfully imported.{% endtrans %}

{% endif %} {% if form %}

{% trans %}Moving to Snikket?{% endtrans %}

{% trans %}If you are moving from a different Snikket instance or another XMPP-compatible service, you may optionally import the data (contacts, profile information, etc.) from your previous account. When you have exported the data from your previous account, upload it using the form below.{% endtrans %}

{% trans %}Upload account data{% endtrans %}

{{ form.csrf_token }} {% call render_errors(form) %}{% endcall %}
{{ form.account_data_file.label }} {{ form.account_data_file(accept="application/xml", data_maxsize=max_import_size, data_warning_header=import_too_big_warning_header, data_maxsize_warning=import_too_big_warning) }}
{%- call form_button("upload", form.action_import, class="secondary") %}{% endcall -%}
{% endif %}
{% endblock %}