mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Separate out the short description and app name
Signed-off-by: Prachi <prachi@swecha.net> Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
1 parent
f75f9dbab9
commit
c8eb714562
60 files changed
+238
-173
No files matched your search
@@ -34,7 +34,7 @@ managed_services = ['ntp']
|
||||
|
||||
managed_packages = ['ntp']
|
||||
|
||||
title = _('Date & Time')
|
||||
name = _('Date & Time')
|
||||
|
||||
description = [
|
||||
_('Network time server is a program that maintains the system time '
|
||||
@@ -47,13 +47,13 @@ service = None
|
||||
def init():
|
||||
"""Intialize the date/time module."""
|
||||
menu = main_menu.get('system')
|
||||
menu.add_urlname(title, 'glyphicon-time', 'datetime:index')
|
||||
menu.add_urlname(name, 'glyphicon-time', 'datetime:index')
|
||||
|
||||
global service
|
||||
setup_helper = globals()['setup_helper']
|
||||
if setup_helper.get_state() != 'needs-setup':
|
||||
service = service_module.Service(
|
||||
managed_services[0], title, ports=['ntp'], is_external=False)
|
||||
managed_services[0], name, ports=['ntp'], is_external=False)
|
||||
|
||||
|
||||
def setup(helper, old_version=None):
|
||||
@@ -62,7 +62,7 @@ def setup(helper, old_version=None):
|
||||
global service
|
||||
if service is None:
|
||||
service = service_module.Service(
|
||||
managed_services[0], title, ports=['ntp'], is_external=False)
|
||||
managed_services[0], name, ports=['ntp'], is_external=False)
|
||||
helper.call('post', service.notify_enabled, None, True)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user