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

+3 -1
View File
@@ -38,6 +38,8 @@ managed_packages = ['openvpn', 'easy-rsa']
name = _('OpenVPN')
icon_filename = 'openvpn'
short_description = _('Virtual Private Network')
description = [
@@ -79,7 +81,7 @@ class OpenVPNApp(app_module.App):
link=reverse_lazy('openvpn:profile'))
shortcut = frontpage.Shortcut(
'shortcut-openvpn', name, short_description=short_description,
icon='openvpn', description=description + [download_profile],
icon=icon_filename, description=description + [download_profile],
configure_url=reverse_lazy('openvpn:index'), login_required=True)
self.add(shortcut)