Web Resource module

This commit is contained in:
manson committed 2014-05-05 19:33:35 +08:00
1 parent 70c99b941d
commit e0f7d92d7a
14 files changed
+450 -20

No files matched your search

+21 -9
View File
@@ -1,8 +1,8 @@
module Links
module WebResource
class Engine < ::Rails::Engine
initializer "links" do
OrbitApp.registration "Links", :type => "ModuleApp" do
module_label "links.links"
initializer "web_resource" do
OrbitApp.registration "WebResource", :type => "ModuleApp" do
module_label "link"
base_url File.expand_path File.dirname(__FILE__)
taggable "WebLink"
@@ -10,12 +10,24 @@ module Links
authorizable
side_bar do
head_label_i18n 'faq.faq', icon_class: "icons-link"
head_label_i18n 'link',:icon_class=>"icons-link"
available_for [:admin,:manager,:sub_manager]
active_for_controllers ({:private=>['web_links']})
head_link_path "admin_web_links_path"
end
active_for_controllers ({:private=>['web_resource']})
head_link_path "admin_web_resources_path"
context_link 'list_',
:link_path=>"admin_web_resources_path" ,
:priority=>1,
:active_for_action=>{'admin/web_resources'=>'index'},
:available_for => [:all]
context_link 'add',
:link_path=>"new_admin_web_resource_path" ,
:priority=>2,
:active_for_action=>{'admin/web_resources'=>'new'},
:available_for => [:sub_manager]
end
end
end
end
end
end