mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
context_processors: Stop adding unused 'submenu' to context
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
079b4324f6
commit
44aab658ed
@ -32,7 +32,6 @@ def common(request):
|
||||
] # Ignore the first two slashes '/plinth/apps/'
|
||||
return {
|
||||
'cfg': cfg,
|
||||
'submenu': menu.main_menu.active_item(request),
|
||||
'active_menu_urls': active_menu_urls,
|
||||
'box_name': _(cfg.box_name),
|
||||
'user_is_admin': is_user_admin(request, True),
|
||||
|
||||
@ -36,9 +36,6 @@ def test_common(Notification, load_cfg):
|
||||
|
||||
assert response['box_name'] == 'FreedomBox'
|
||||
|
||||
submenu = response['submenu']
|
||||
assert submenu is None
|
||||
|
||||
urls = response['active_menu_urls']
|
||||
assert urls is not None
|
||||
assert ['/plinth/aaa/', '/plinth/aaa/bbb/', '/plinth/aaa/bbb/ccc/'] == urls
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user