use single variable for referencing icon filename

- add and use "icon_filename" property to almost all of the modules
  being displayed in the apps page
- sharing and tor modules do not seem to be using setup.html template
  file and so the variable is not added to their __init__.py files,
  therefore the icon will not be displayed on these app pages.

Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Alice Kile authored and James Valleroy committed 2019-12-07 13:08:33 -05:00
1 parent f004939f50
commit fa74a26042
26 files changed
+79 -27

No files matched your search

+4 -1
View File
@@ -35,6 +35,8 @@ managed_packages = ['libjs-jsxc']
name = _('JSXC')
icon_filename = 'jsxc'
short_description = _('Chat Client')
description = [
@@ -63,7 +65,8 @@ class JSXCApp(app_module.App):
shortcut = frontpage.Shortcut(
'shortcut-jsxc', name=name, short_description=short_description,
icon='jsxc', url=reverse_lazy('jsxc:jsxc'), clients=clients)
icon=icon_filename,
url=reverse_lazy('jsxc:jsxc'), clients=clients)
self.add(shortcut)
firewall = Firewall('firewall-jsxc', name, ports=['http', 'https'],