Fix sidebar registration

This commit is contained in:
manson 2014-05-14 15:39:40 +08:00
parent f4eab719f8
commit 12a62c26b5
1 changed files with 2 additions and 2 deletions

View File

@ -29,14 +29,14 @@ module Announcement
:available_for => [:sub_manager]
context_link 'categories',
:link_path=>"admin_module_app_categories_path" ,
:link_arg=>{:module_app_id=>get_module_app.id},
:link_arg=>"{:module_app_id=>ModuleApp.find_by(:key=>'announcement').id}",
:priority=>3,
:active_for_action=>{'admin/announcements'=>'categories'},
:active_for_category => 'Announcement',
:available_for => [:manager]
context_link 'tags',
:link_path=>"admin_module_app_tags_path" ,
:link_arg=>{:module_app_id=>get_module_app.id},
:link_arg=>"{:module_app_id=>ModuleApp.find_by(:key=>'announcement').id}",
:priority=>4,
:active_for_action=>{'admin/announcements'=>'tags'},
:active_for_tag => 'Announcement',