Shorten and reorganize menu names
Change the left hand side menu designation to be the 'main' menu from 'sidebar', the menu at the top goes from 'main' to 'topside'. All menus are referenced by their name only and the fragment 'menu' is dropped from all as it is obvious that they are menus and the Menu class doesn't supply any other kind of object. Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
This commit is contained in:
@@ -38,7 +38,7 @@ def get_menus_links(context, names, source=None, sort_results=None):
|
||||
@register.simple_tag(takes_context=True)
|
||||
def get_multi_item_links_form(context, object_list):
|
||||
actions = []
|
||||
for link_set in Menu.get('multi item menu').resolve(context=context, source=object_list[0], sort_results=True):
|
||||
for link_set in Menu.get(name='multi item').resolve(context=context, source=object_list[0], sort_results=True):
|
||||
for link in link_set:
|
||||
actions.append((link.url, link.text))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user