2012-12-05 10:35:58 +00:00
|
|
|
module AdBanner
|
|
|
|
OrbitApp.registration "AdBanner",:type=> 'ModuleApp' do
|
2013-08-09 06:49:11 +00:00
|
|
|
module_label 'ad_banner.ad_banner'
|
2012-12-05 10:35:58 +00:00
|
|
|
base_url File.expand_path File.dirname(__FILE__)
|
|
|
|
# personal_plugin :enable => true,:path=>"panel/ad_banner/plugin/profile",:i18n=>'admin.ad_banner'
|
|
|
|
|
|
|
|
version "0.1"
|
|
|
|
organization "Rulingcom"
|
|
|
|
author "RD dep"
|
|
|
|
intro "I am intro"
|
|
|
|
update_info 'some update_info'
|
2013-08-05 10:30:35 +00:00
|
|
|
|
|
|
|
taggable
|
2013-08-22 07:18:54 +00:00
|
|
|
authorizable
|
2013-07-02 08:46:44 +00:00
|
|
|
|
2012-12-05 10:35:58 +00:00
|
|
|
# front_end do
|
|
|
|
# app_page 'bulletins'
|
|
|
|
# end
|
|
|
|
|
|
|
|
# category ["BulletinCategory"]
|
|
|
|
|
|
|
|
# widgets do
|
|
|
|
# # default_widget do
|
|
|
|
# # query 'Bulletin.all'
|
|
|
|
# # image :image
|
|
|
|
# # end
|
|
|
|
|
|
|
|
# # categories_query 'BulletinCategory.all'
|
|
|
|
# # tags_query 'AdBannerTag.all'
|
|
|
|
|
|
|
|
# # customize_widget "index","ad_banner.widget.index",:fields=>["title","category","postdate"],:style=>["cu_style_1","cu_style_2","cu_style_3","cu_style_4","cu_style_5"]
|
|
|
|
# # customize_widget "bulletins_and_web_links","ad_banner.widget.bulletins_and_web_links"
|
|
|
|
|
|
|
|
# # item "index","ad_banner.widget.index",:default_template=>true,:fields=>["title","category","postdate"]
|
|
|
|
# # item "bulletins_and_web_links","ad_banner.widget.bulletins_and_web_links"
|
|
|
|
# end
|
|
|
|
|
|
|
|
side_bar do
|
2013-08-09 06:49:11 +00:00
|
|
|
head_label_i18n 'ad_banner.ad_banner',:icon_class=>"icons-landscape"
|
2012-12-05 10:35:58 +00:00
|
|
|
available_for [:admin,:guest,:manager,:sub_manager]
|
2012-12-07 04:40:47 +00:00
|
|
|
active_for_controllers ({:public=>['admin/ad_banners', 'admin/ad_images']})
|
2012-12-05 10:35:58 +00:00
|
|
|
|
|
|
|
head_link_path "admin_ad_banners_path"
|
|
|
|
|
2013-08-09 01:24:26 +00:00
|
|
|
context_link 'ad_banner.all',
|
|
|
|
:link_path=>"admin_ad_images_path" ,
|
2013-08-05 10:30:35 +00:00
|
|
|
:priority=>1,
|
|
|
|
:active_for_action=>{'admin/ad_banners'=>:index},
|
|
|
|
:available_for => [:manager]
|
2013-08-09 01:24:26 +00:00
|
|
|
|
|
|
|
context_link 'ad_banner.add',
|
|
|
|
:link_path=>"new_admin_ad_image_path" ,
|
|
|
|
:priority=>1,
|
|
|
|
:active_for_action=>{'admin/ad_banners'=>:index},
|
2013-08-05 10:30:35 +00:00
|
|
|
:available_for => [:manager]
|
|
|
|
|
2013-08-09 01:24:26 +00:00
|
|
|
context_link 'ad_banner.banner',
|
|
|
|
:link_path=>"admin_ad_banners_path" ,
|
|
|
|
:priority=>3,
|
|
|
|
:active_for_action=>{'admin/ad_banners'=>:index},
|
|
|
|
:available_for => [:manager]
|
|
|
|
|
2013-08-09 06:49:11 +00:00
|
|
|
context_link 'tags',
|
|
|
|
:link_path=>"admin_module_tags_path(module_app_id: get_module_app)" ,
|
|
|
|
:priority=>4,
|
|
|
|
:active_for_tag => 'Announcement',
|
|
|
|
:available_for => [:manager]
|
|
|
|
|
2012-12-05 10:35:58 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|