mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
menu and submenu now also uses djangos named urls and url-reverse
This commit is contained in:
1 parent
809dc4130a
commit
5150efac5f
17 files changed
+68
-55
No files matched your search
@@ -34,8 +34,8 @@ LOGGER = logging.getLogger(__name__)
|
||||
|
||||
def init():
|
||||
"""Initailze firewall module"""
|
||||
menu = cfg.main_menu.find('/sys')
|
||||
menu.add_item(_('Firewall'), 'icon-flag', '/sys/firewall', 50)
|
||||
menu = cfg.main_menu.get('system:index')
|
||||
menu.add_urlname(_('Firewall'), 'icon-flag', 'firewall:index', 50)
|
||||
|
||||
service_module.ENABLED.connect(on_service_enabled)
|
||||
|
||||
|
||||
Reference in new issue
Block a user