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
+2
-2
@@ -29,8 +29,8 @@ import cfg
|
||||
|
||||
def init():
|
||||
"""Initialize the Tor module"""
|
||||
menu = cfg.main_menu.find('/apps')
|
||||
menu.add_item("Tor", "icon-eye-close", "/apps/tor", 30)
|
||||
menu = cfg.main_menu.get('apps:index')
|
||||
menu.add_urlname("Tor", "icon-eye-close", "tor:index", 30)
|
||||
|
||||
|
||||
@login_required
|
||||
|
||||
Reference in new issue
Block a user