Debian Codegraph @

plinth/modules/matrixsynapse/templates/matrix-synapse-pre-setup.html

raw
1 {% extends "app.html" %}
2 {% comment %}
3 # SPDX-License-Identifier: AGPL-3.0-or-later
4 {% endcomment %}
5
6 {% load bootstrap %}
7 {% load i18n %}
8 {% load extras %}
9
10 {% block pagetitle %}
11 <h2>{{ name }}</h2>
12 {% endblock %}
13
14
15 {% block configuration %}
16 <h3>{% trans "Configuration" %}</h3>
17
18 <p>
19 {% blocktrans trimmed %}
20 Matrix service needs to be configured for a domain. Users on other Matrix
21 servers will be able to reach users on this server using this domain name.
22 Matrix user IDs will look like <em>@username:domainname</em>.
23 {% endblocktrans %}
24 </p>
25
26 <div class="alert alert-warning d-flex align-items-center" role="alert">
27 <div class="me-2">
28 {% icon 'exclamation-triangle' %}
29 <span class="visually-hidden">{% trans "Caution:" %}</span>
30 </div>
31 <div>
32 {% blocktrans trimmed %}
33 <strong>Warning!</strong> Changing the domain name after this step will
34 require uninstalling and reinstalling the app which will wipe app's
35 data.
36 {% endblocktrans %}
37 </div>
38 </div>
39
40 {% if not domain_names %}
41 {% url 'names:index' as config_url %}
42 <p>
43 {% blocktrans trimmed %}
44 No domain(s) are available. <a href="{{ config_url }}">Configure</a>
45 at least one domain to be able to use Matrix Synapse.
46 {% endblocktrans %}
47 </p>
48 {% else %}
49 <form class="form form-configuration" method="post">
50 {% csrf_token %}
51
52 {{ form|bootstrap }}
53
54 <input type="submit" class="btn btn-primary"
55 value="{% trans "Update setup" %}"/>
56 </form>
57 {% endif %}
58 {% endblock %}