mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
f004939f50
commit
fa74a26042
26 files changed
+79
-27
No files matched your search
@@ -41,6 +41,8 @@ managed_packages = ['privoxy']
|
||||
|
||||
name = _('Privoxy')
|
||||
|
||||
icon_filename = 'privoxy'
|
||||
|
||||
short_description = _('Web Proxy')
|
||||
|
||||
description = [
|
||||
@@ -80,7 +82,7 @@ class PrivoxyApp(app_module.App):
|
||||
|
||||
shortcut = frontpage.Shortcut(
|
||||
'shortcut-privoxy', name, short_description=short_description,
|
||||
icon='privoxy', description=description,
|
||||
icon=icon_filename, description=description,
|
||||
configure_url=reverse_lazy('privoxy:index'), login_required=True)
|
||||
self.add(shortcut)
|
||||
|
||||
@@ -115,7 +117,7 @@ class PrivoxyAppView(AppView):
|
||||
name = name
|
||||
description = description
|
||||
manual_page = manual_page
|
||||
|
||||
icon_filename = icon_filename
|
||||
|
||||
def diagnose():
|
||||
"""Run diagnostics and return the results."""
|
||||
|
||||
Reference in new issue
Block a user