Fix sidebar registration

This commit is contained in:
manson 2014-05-14 15:43:19 +08:00
parent 73b6be057c
commit 7353c1c593
1 changed files with 2 additions and 2 deletions

View File

@ -27,14 +27,14 @@ module Gallery
context_link 'categories', context_link 'categories',
:link_path=>"admin_module_app_categories_path" , :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=>'gallery').id}",
:priority=>3, :priority=>3,
:active_for_action=>{'admin/galleries'=>'categories'}, :active_for_action=>{'admin/galleries'=>'categories'},
:active_for_category => 'Gallery' :active_for_category => 'Gallery'
context_link 'tags', context_link 'tags',
:link_path=>"admin_module_app_tags_path" , :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=>'gallery').id}",
:priority=>4, :priority=>4,
:active_for_action=>{'admin/galleries'=>'tags'}, :active_for_action=>{'admin/galleries'=>'tags'},
:active_for_tag => 'Gallery' :active_for_tag => 'Gallery'