FreedomBox/plinth/modules/matrixsynapse/templates/matrix-synapse-pre-setup.html
Sunil Mohan Adapa 36d9f2611f
matrix-synapse: Update warning on how to change domain name
- It does not look like matrix-synapse will ever support changing domain name.

- Our only recourse is to uninstall and install the app. Mention this solution
to users and its consequences upfront.

Tests:

- Test that message got updated during setup after installation.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2023-10-07 05:54:30 +09:00

51 lines
1.3 KiB
HTML

{% extends "app.html" %}
{% comment %}
# SPDX-License-Identifier: AGPL-3.0-or-later
{% endcomment %}
{% load bootstrap %}
{% load i18n %}
{% block pagetitle %}
<h2>{{ name }}</h2>
{% endblock %}
{% block configuration %}
<h3>{% trans "Configuration" %}</h3>
<p>
{% blocktrans trimmed %}
Matrix service needs to be configured for a domain. Users on other Matrix
servers will be able to reach users on this server using this domain name.
Matrix user IDs will look like <em>@username:domainname</em>.
{% endblocktrans %}
</p>
<div class="alert alert-warning" role="alert">
{% blocktrans %}
<strong>Warning!</strong> Changing the domain name after this step will
require uninstalling and reinstalling the app which will wipe app's data.
{% endblocktrans %}
</div>
{% if not domain_names %}
{% url 'config:index' as config_url %}
<p>
{% blocktrans trimmed %}
No domain(s) are available. <a href="{{ config_url }}">Configure</a>
at least one domain to be able to use Matrix Synapse.
{% endblocktrans %}
</p>
{% else %}
<form class="form form-configuration" method="post">
{% csrf_token %}
{{ form|bootstrap }}
<input type="submit" class="btn btn-primary"
value="{% trans "Update setup" %}"/>
</form>
{% endif %}
{% endblock %}