mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
syncthing: Added glyph icon and corrected description and URLs
This commit is contained in:
parent
2e28408f4b
commit
cef7e6ff60
@ -34,13 +34,13 @@ managed_services = ['syncthing']
|
|||||||
|
|
||||||
managed_packages = ['syncthing']
|
managed_packages = ['syncthing']
|
||||||
|
|
||||||
title = _('Personal cloud service\n (Syncthing)')
|
title = _('Personal Cloud (Syncthing)')
|
||||||
|
|
||||||
description = [
|
description = [
|
||||||
_('Syncthing is a news feed (RSS/Atom) reader and aggregator, '
|
_('Syncthing is a file synchronization program that can sync files '
|
||||||
'designed to allow reading news from any location, while feeling as '
|
'between multiple devices. Syncthing enables this FreedomBox to be '
|
||||||
'close to a real desktop application as possible.'),
|
'used as a cloud server for storing and sharing files'),
|
||||||
_('When enabled, Syncthing will be available from <a href="/syncthing">'
|
_('When enabled, Syncthing will be available from <a href="/syncthing/">'
|
||||||
'/syncthing</a> path on the web server.'),
|
'/syncthing</a> path on the web server.'),
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ service = None
|
|||||||
def init():
|
def init():
|
||||||
"""Intialize the module."""
|
"""Intialize the module."""
|
||||||
menu = cfg.main_menu.get('apps:index')
|
menu = cfg.main_menu.get('apps:index')
|
||||||
menu.add_urlname(title, 'glyphicon-envelope', 'syncthing:index')
|
menu.add_urlname(title, 'glyphicon-cloud', 'syncthing:index')
|
||||||
|
|
||||||
global service
|
global service
|
||||||
setup_helper = globals()['setup_helper']
|
setup_helper = globals()['setup_helper']
|
||||||
@ -88,7 +88,7 @@ def setup(helper, old_version=None):
|
|||||||
|
|
||||||
def add_shortcut():
|
def add_shortcut():
|
||||||
frontpage.add_shortcut(
|
frontpage.add_shortcut(
|
||||||
'syncthing', title, url='/syncthing', login_required=True)
|
'syncthing', title, url='/syncthing/', login_required=True)
|
||||||
|
|
||||||
|
|
||||||
def is_enabled():
|
def is_enabled():
|
||||||
@ -115,6 +115,6 @@ def diagnose():
|
|||||||
|
|
||||||
results.extend(
|
results.extend(
|
||||||
action_utils.diagnose_url_on_all(
|
action_utils.diagnose_url_on_all(
|
||||||
'https://{host}/syncthing', check_certificate=False))
|
'https://{host}/syncthing/', check_certificate=False))
|
||||||
|
|
||||||
return results
|
return results
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user