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
@@ -42,6 +42,8 @@ managed_packages = ['gitweb', 'highlight']
|
||||
|
||||
name = _('Gitweb')
|
||||
|
||||
icon_filename = 'gitweb'
|
||||
|
||||
short_description = _('Simple Git Hosting')
|
||||
|
||||
description = [
|
||||
@@ -78,7 +80,7 @@ class GitwebApp(app_module.App):
|
||||
|
||||
shortcut = frontpage.Shortcut(
|
||||
'shortcut-gitweb', name, short_description=short_description,
|
||||
icon='gitweb', url='/gitweb/', clients=clients,
|
||||
icon=icon_filename, url='/gitweb/', clients=clients,
|
||||
login_required=True, allowed_groups=[group[0]])
|
||||
self.add(shortcut)
|
||||
|
||||
|
||||
Reference in new issue
Block a user