mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-10 11:00:22 +00:00
clients: Minor styling fixes
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
b542d43175
commit
1200020a0e
@ -1 +1 @@
|
||||
plinth.modules.api
|
||||
plinth.modules.api
|
||||
|
||||
@ -82,10 +82,10 @@ def init():
|
||||
global service
|
||||
setup_helper = globals()['setup_helper']
|
||||
if setup_helper.get_state() != 'needs-setup':
|
||||
service = service_module.Service(managed_services[0], name, ports=[
|
||||
'http', 'https'
|
||||
], is_external=True, is_enabled=is_enabled, enable=enable,
|
||||
disable=disable)
|
||||
service = service_module.Service(
|
||||
managed_services[0], name, ports=['http', 'https'],
|
||||
is_external=True, is_enabled=is_enabled, enable=enable,
|
||||
disable=disable)
|
||||
|
||||
if is_enabled():
|
||||
add_shortcut()
|
||||
|
||||
@ -58,6 +58,8 @@ description = [
|
||||
'client is recommended.')
|
||||
]
|
||||
|
||||
clients = clients
|
||||
|
||||
service = None
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@ -65,8 +67,6 @@ logger = logging.getLogger(__name__)
|
||||
SERVER_NAME_PATH = "/etc/matrix-synapse/conf.d/server_name.yaml"
|
||||
CONFIG_FILE_PATH = '/etc/matrix-synapse/homeserver.yaml'
|
||||
|
||||
clients = clients
|
||||
|
||||
|
||||
def init():
|
||||
"""Initialize the matrix-synapse module."""
|
||||
|
||||
@ -26,7 +26,6 @@ from plinth import service as service_module
|
||||
from plinth import action_utils, actions, frontpage
|
||||
from plinth.menu import main_menu
|
||||
from plinth.modules.users import create_group, register_group
|
||||
|
||||
from .manifest import clients
|
||||
|
||||
version = 2
|
||||
|
||||
@ -70,10 +70,10 @@ class ServiceView(FormView):
|
||||
diagnostics_module_name = ""
|
||||
# List of paragraphs describing the service
|
||||
description = ""
|
||||
form_class = forms.ServiceForm
|
||||
# Display the 'status' block of the service.html template
|
||||
# This block uses information from service.is_running. This method is
|
||||
# optional, so allow not showing this block here.
|
||||
form_class = forms.ServiceForm
|
||||
show_status_block = True
|
||||
service_id = None
|
||||
template_name = 'service.html'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user