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:
Roberto Rosario
2018-12-24 19:15:20 -04:00
parent 2402668e16
commit 2c3e2e2bef
10 changed files with 135 additions and 131 deletions
@@ -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))