mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-13 07:29:39 +00:00
Put menu items into sections
This commit is contained in:
parent
228988ffb8
commit
d0ef6cb677
@ -138,7 +138,8 @@ class ChatPlugin(IndicoPlugin):
|
||||
|
||||
def extend_event_management_menu(self, event, **kwargs):
|
||||
if event.canModify(session.user) or is_chat_admin(session.user):
|
||||
return 'chat-management', SideMenuItem('Chat Rooms', url_for_plugin('chat.manage_rooms', event))
|
||||
return 'chat-management', SideMenuItem('Chat Rooms', url_for_plugin('chat.manage_rooms', event),
|
||||
section='advanced')
|
||||
|
||||
def extend_event_management_clone(self, event, **kwargs):
|
||||
return ChatroomCloner(event, self)
|
||||
|
||||
@ -75,7 +75,7 @@ class PiwikPlugin(IndicoPlugin):
|
||||
|
||||
def add_sidemenu_item(self, event, **kwargs):
|
||||
if event.canModify(session.user):
|
||||
menu_item = SideMenuItem(_("Statistics"), url_for_plugin('piwik.view', event))
|
||||
menu_item = SideMenuItem(_("Statistics"), url_for_plugin('piwik.view', event), section='advanced')
|
||||
return 'statistics', menu_item
|
||||
|
||||
def get_blueprints(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user