Commit 3095a84b authored by Rui Fu's avatar Rui Fu

add menu item settings for AdminIndexView

add `menu_class_name`, `menu_icon_type` and `menu_icon_value` for
AdminIndexView
parent 25a08612
......@@ -415,12 +415,18 @@ class AdminIndexView(BaseView):
"""
def __init__(self, name=None, category=None,
endpoint=None, url=None,
template='admin/index.html'):
template='admin/index.html',
menu_class_name=None,
menu_icon_type=None,
menu_icon_value=None):
super(AdminIndexView, self).__init__(name or babel.lazy_gettext('Home'),
category,
endpoint or 'admin',
url or '/admin',
'static')
'static',
menu_class_name=menu_class_name,
menu_icon_type=menu_icon_type,
menu_icon_value=menu_icon_value)
self._template = template
@expose()
......
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