mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
menu: Ensure that all menu items have names for use by breadcrumbs
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
parent
36c4bc30fb
commit
016b6d0c29
@ -109,10 +109,10 @@ main_menu = None
|
||||
def init():
|
||||
"""Create main menu and other essential menus."""
|
||||
global main_menu
|
||||
main_menu = Menu('menu-index', url_name='index')
|
||||
Menu('menu-apps', icon='fa-download', url_name='apps',
|
||||
main_menu = Menu('menu-index', name=_('Home'), url_name='index')
|
||||
Menu('menu-apps', name=_('Apps'), icon='fa-download', url_name='apps',
|
||||
parent_url_name='index')
|
||||
Menu('menu-system', icon='fa-cog', url_name='system',
|
||||
Menu('menu-system', name=_('System'), icon='fa-cog', url_name='system',
|
||||
parent_url_name='index')
|
||||
|
||||
Menu('menu-system-visibility', name=_('Visibility'), icon='fa-cog',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user