Fix sidebar registration

This commit is contained in:
manson 2014-05-14 15:43:47 +08:00
parent a5e5991b95
commit 8ee2c96f79
1 changed files with 2 additions and 2 deletions

View File

@ -28,14 +28,14 @@ module Faq
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=>'faq').id}",
:priority=>3, :priority=>3,
:active_for_action=>{'admin/faqs'=>'categories'}, :active_for_action=>{'admin/faqs'=>'categories'},
:active_for_category => 'Faq' :active_for_category => 'Faq'
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=>'faq').id}",
:priority=>4, :priority=>4,
:active_for_action=>{'admin/faqs'=>'tags'}, :active_for_action=>{'admin/faqs'=>'tags'},
:active_for_tag => 'Faq' :active_for_tag => 'Faq'