mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
frontpage: Cleanup urls for showing description
In a module, when URL is not avialable for a shortcut, send None instead of an implementation specific detail on how to show description. This allows use to change the implementation of how description is shown without changes to modules.
This commit is contained in:
8 files changed
+17
-14
No files matched your search
@@ -91,8 +91,8 @@ def setup(helper, old_version=None):
|
||||
|
||||
|
||||
def add_shortcut():
|
||||
frontpage.add_shortcut('repro', title, '?selected=repro',
|
||||
'glyphicon-phone-alt', description)
|
||||
frontpage.add_shortcut('repro', title, None, 'glyphicon-phone-alt',
|
||||
description)
|
||||
|
||||
|
||||
def enable():
|
||||
|
||||
Reference in new issue
Block a user