Debian Codegraph @

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

raw
1 {% extends "app.html" %}
2 {% comment %}
3 # SPDX-License-Identifier: AGPL-3.0-or-later
4 {% endcomment %}
5
6 {% load i18n %}
7 {% load static %}
8 {% load extras %}
9
10 {% block page_js %}
11 <script src="{% static 'matrixsynapse/matrixsynapse.js' %}" defer></script>
12 {% endblock %}
13
14 {% block status %}
15 {{ block.super }}
16
17 <h3>{% trans "Status" %}</h3>
18
19 <p>
20 {% blocktrans trimmed %}
21 The Matrix server domain is set to <em>{{ domain_name }}</em>. User IDs
22 will look like <em>@username:{{ domain_name }}</em>. Changing the domain
23 name requires uninstalling and reinstalling the app which will wipe app's
24 data.
25 {% endblocktrans %}
26 </p>
27 <p>
28 {% blocktrans trimmed %}
29 New users can be registered from any client if public registration is
30 enabled.
31 {% endblocktrans %}
32 </p>
33 {% if config.public_registration and config.registration_verification == 'token' and registration_tokens %}
34 <p>
35 {% blocktrans trimmed %}
36 New users must use one of the following tokens for verification during
37 account registration:
38 {% endblocktrans %}
39 </p>
40 <div class="table-responsive table-registration-tokens">
41 <table class="table">
42 <thead>
43 <tr>
44 <th>{% trans "Registration Token" %}</th>
45 <th>{% trans "Uses Allowed" %}</th>
46 <th>{% trans "Pending Registrations" %}</th>
47 <th>{% trans "Completed Registrations" %}</th>
48 <th>{% trans "Expiry Time" %}</th>
49 </tr>
50 </thead>
51 <tbody>
52 {% for token in registration_tokens %}
53 <tr>
54 <td>{{ token.token }}</td>
55 <td>
56 {% if token.uses_allowed is None %}
57 {% trans "Unlimited" %}
58 {% else %}
59 {{ token.uses_allowed }}
60 {% endif %}
61 </td>
62 <td>{{ token.pending }}</td>
63 <td>{{ token.completed }}</td>
64 <td>
65 {% if token.expiry_time %}
66 {{ token.expiry_time|date:"DATETIME_FORMAT" }}
67 {% else %}
68 {% trans "None" %}
69 {% endif %}
70 </td>
71 </tr>
72 {% endfor %}
73 </tbody>
74 </table>
75 </div>
76 {% endif %}
77
78 <h3>{% trans "Federation" %}</h3>
79
80 <p>
81 {% blocktrans trimmed with tester_url="https://federationtester.matrix.org/" %}
82 Matrix Synapse is configured to work with other Matrix servers on the
83 internet. This allows {{ box_name }} users to participate in rooms that
84 are hosted elsewhere and Matrix users on other servers to participate
85 in rooms hosted here. If you face problems with federation, try the
86 <a href="{{ tester_url }}#{{ domain_name }}">
87 federation tester tool</a>.
88 {% endblocktrans %}
89 </p>
90
91 {% if certificate_status != "valid" %}
92 <div class="alert alert-warning d-flex align-items-center" role="alert">
93 <div class="me-2">
94 {% icon 'exclamation-triangle' %}
95 <span class="visually-hidden">{% trans "Caution:" %}</span>
96 </div>
97 <div>
98 {% url 'letsencrypt:index' as letsencrypt_url %}
99 {% blocktrans trimmed %}
100 The configured domain name is using a self-signed certificate.
101 Federation with other Matrix Synapse instances requires a valid TLS
102 certificate. Please go to <a href="{{ letsencrypt_url }}">Let's
103 Encrypt</a> to obtain one.
104 {% endblocktrans %}
105 </div>
106 </div>
107 {% endif %}
108 {% endblock %}