Update Tag and Category

This commit is contained in:
manson 2014-04-18 19:38:37 +08:00
parent 9e82060654
commit 63a4209cac
1 changed files with 22 additions and 19 deletions

View File

@ -1,32 +1,35 @@
module AdBanner module AdBanner
class Engine < ::Rails::Engine class Engine < ::Rails::Engine
initializer "ad_banner" do initializer "ad_banner" do
OrbitApp.registration "AdBanner", :type => "ModuleApp" do OrbitApp.registration "AdBanner", :type => "ModuleApp" do
module_label "ad_banner.ad_banner" module_label "ad_banner.ad_banner"
base_url File.expand_path File.dirname(__FILE__) base_url File.expand_path File.dirname(__FILE__)
widget_methods ["widget"] widget_methods ["widget"]
side_bar do taggable "Banner"
head_label_i18n 'ad_banner.ad_banner', icon_class: "icons-landscape" categorizable "Banner"
side_bar do
head_label_i18n 'ad_banner.ad_banner', icon_class: "icons-landscape"
active_for_controllers ({:private=>['ad_banner']}) active_for_controllers ({:private=>['ad_banner']})
head_link_path "admin_ad_banners_path" head_link_path "admin_ad_banners_path"
context_link 'ad_banner.all', context_link 'ad_banner.all',
:link_path=>"admin_ad_images_path" , :link_path=>"admin_ad_images_path" ,
:priority=>1, :priority=>1,
:active_for_action=>{'admin/ad_banners'=>:index} :active_for_action=>{'admin/ad_banners'=>:index}
context_link 'ad_banner.add', context_link 'ad_banner.add',
:link_path=>"new_admin_ad_image_path" , :link_path=>"new_admin_ad_image_path" ,
:priority=>1, :priority=>1,
:active_for_action=>{'admin/ad_banners'=>:index} :active_for_action=>{'admin/ad_banners'=>:index}
context_link 'ad_banner.banner', context_link 'ad_banner.banner',
:link_path=>"admin_ad_banners_path" , :link_path=>"admin_ad_banners_path" ,
:priority=>3, :priority=>3,
:active_for_action=>{'admin/ad_banners'=>:index} :active_for_action=>{'admin/ad_banners'=>:index}
end end
end end
end end
end end
end end