Commit f9504282 authored by nplus's avatar nplus

comment position is wrong

parent d501cb04
...@@ -540,12 +540,6 @@ class Admin(object): ...@@ -540,12 +540,6 @@ class Admin(object):
self._menu_links.append(link) self._menu_links.append(link)
def _add_menu_item(self, menu_item, target_category): def _add_menu_item(self, menu_item, target_category):
"""
Add a view to the menu tree
:param view:
View to add
"""
if target_category: if target_category:
category = self._menu_categories.get(target_category) category = self._menu_categories.get(target_category)
...@@ -560,6 +554,12 @@ class Admin(object): ...@@ -560,6 +554,12 @@ class Admin(object):
self._menu.append(menu_item) self._menu.append(menu_item)
def _add_view_to_menu(self, view): def _add_view_to_menu(self, view):
"""
Add a view to the menu tree
:param view:
View to add
"""
self._add_menu_item(MenuView(view.name, view), view.category) self._add_menu_item(MenuView(view.name, view), view.category)
def get_category_menu_item(self, name): def get_category_menu_item(self, name):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment