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:
Prachi authored and Joseph Nuthalpati committed 2017-08-21 11:17:08 +05:30
1 parent f75f9dbab9
commit c8eb714562
60 files changed
+238 -173

No files matched your search

+4 -2
View File
@@ -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'
+1 -1
View File
@@ -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),