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 -2
View File
@@ -34,6 +34,8 @@ version = 1
name = _('Mumble')
icon_filename = 'mumble'
short_description = _('Voice Chat')
managed_services = ['mumble-server']
@@ -76,7 +78,7 @@ class MumbleApp(app_module.App):
shortcut = frontpage.Shortcut(
'shortcut-mumble', name, short_description=short_description,
icon='mumble', description=description,
icon=icon_filename, description=description,
configure_url=reverse_lazy('mumble:index'), clients=clients)
self.add(shortcut)
@@ -106,7 +108,7 @@ class MumbleAppView(AppView):
clients = clients
manual_page = manual_page
port_forwarding_info = port_forwarding_info
icon_filename = icon_filename
def setup(helper, old_version=None):
"""Install and configure the module."""