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
@@ -39,7 +39,9 @@ depends = ['names']
|
||||
managed_packages = ['tor', 'tor-geoipdb', 'torsocks', 'obfs4proxy',
|
||||
'apt-transport-tor']
|
||||
|
||||
title = ('Anonymity Network \n (Tor)')
|
||||
name = _('Tor')
|
||||
|
||||
short_description = _('Anonymity Network')
|
||||
|
||||
description = [
|
||||
_('Tor is an anonymous communication system. You can learn more '
|
||||
@@ -59,7 +61,7 @@ bridge_service = None
|
||||
def init():
|
||||
"""Initialize the module."""
|
||||
menu = main_menu.get('apps')
|
||||
menu.add_urlname(title, 'glyphicon-eye-close', 'tor:index')
|
||||
menu.add_urlname(name, 'glyphicon-eye-close', 'tor:index', short_description)
|
||||
|
||||
setup_helper = globals()['setup_helper']
|
||||
needs_setup = setup_helper.get_state() == 'needs-setup'
|
||||
|
||||
@@ -51,7 +51,7 @@ def index(request):
|
||||
form = TorForm(initial=status, prefix='tor')
|
||||
|
||||
return TemplateResponse(request, 'tor.html',
|
||||
{'title': tor.title,
|
||||
{'title': tor.name,
|
||||
'description': tor.description,
|
||||
'status': status,
|
||||
'config_running': bool(config_process),
|
||||
|
||||
Reference in new issue
Block a user