mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
matrixsynapse: Minor review changes
- Change the configuration minimally and more reliably. - Rename the Apache configuration and add comments. - Rename firewalld description file. - Enable the matrixsynapse module by default. - Improve category, description texts and warnings. - Remove unused variable. - Add missing docstrings. - Minor styling updates. - Fix i18n in templates. - Fix showing description in main service view. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
12 files changed
+175
-147
No files matched your search
@@ -16,7 +16,7 @@
|
||||
#
|
||||
|
||||
"""
|
||||
Forms for configuring matrix-synapse
|
||||
Forms for configuring matrix-synapse.
|
||||
"""
|
||||
|
||||
from django import forms
|
||||
@@ -26,12 +26,13 @@ from plinth.modules import matrixsynapse
|
||||
|
||||
|
||||
class MatrixSynapseForm(forms.Form):
|
||||
"""Form to do initial configuration of matrix-synapse"""
|
||||
"""Form to do initial configuration of matrix-synapse."""
|
||||
domain_name = forms.ChoiceField(
|
||||
label=_('Select the domain name to be used for Matrix'),
|
||||
label=_('Select the domain name'),
|
||||
choices=[]
|
||||
)
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""Initialize the form object."""
|
||||
super().__init__(*args, **kwargs)
|
||||
self.fields['domain_name'].choices = matrixsynapse.get_domain_names()
|
||||
Reference in new issue
Block a user