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:
Sunil Mohan Adapa 2017-12-06 13:55:34 +05:30 committed by James Valleroy
parent b542d43175
commit 1200020a0e
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
5 changed files with 8 additions and 9 deletions

View File

@ -1 +1 @@
plinth.modules.api
plinth.modules.api

View File

@ -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()

View File

@ -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."""

View File

@ -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

View File

@ -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'