Update category and tag
This commit is contained in:
1 parent
e0f7d92d7a
commit
2d8d079ba5
4 files changed
+25
-10
No files matched your search
+17
-2
@@ -10,7 +10,7 @@ module WebResource
|
||||
authorizable
|
||||
|
||||
side_bar do
|
||||
head_label_i18n 'link',:icon_class=>"icons-link"
|
||||
head_label_i18n 'web_resource',:icon_class=>"icons-link"
|
||||
available_for [:admin,:manager,:sub_manager]
|
||||
active_for_controllers ({:private=>['web_resource']})
|
||||
head_link_path "admin_web_resources_path"
|
||||
@@ -21,11 +21,26 @@ module WebResource
|
||||
:active_for_action=>{'admin/web_resources'=>'index'},
|
||||
:available_for => [:all]
|
||||
|
||||
context_link 'add',
|
||||
context_link 'new_',
|
||||
:link_path=>"new_admin_web_resource_path" ,
|
||||
:priority=>2,
|
||||
:active_for_action=>{'admin/web_resources'=>'new'},
|
||||
:available_for => [:sub_manager]
|
||||
|
||||
context_link 'categories',
|
||||
:link_path=>"admin_module_app_categories_path" ,
|
||||
:link_arg=>{:module_app_id=>get_module_app.id},
|
||||
:priority=>3,
|
||||
:active_for_action=>{'admin/web_resources.'=>'categories'},
|
||||
:active_for_category => 'WebResource',
|
||||
:available_for => [:manager]
|
||||
context_link 'tags',
|
||||
:link_path=>"admin_module_app_tags_path" ,
|
||||
:link_arg=>{:module_app_id=>get_module_app.id},
|
||||
:priority=>4,
|
||||
:active_for_action=>{'admin/web_resources'=>'tags'},
|
||||
:active_for_tag => 'WebResource',
|
||||
:available_for => [:manager]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user