65 lines
2.4 KiB
Ruby
65 lines
2.4 KiB
Ruby
module AdBanner
|
|
OrbitApp.registration "AdBanner",:type=> 'ModuleApp' do
|
|
module_label 'module_name.ad_banner'
|
|
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'
|
|
|
|
|
|
taggable
|
|
|
|
# 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
|
|
head_label_i18n 'module_name.ad_banner',:icon_class=>"icons-landscape"
|
|
available_for [:admin,:guest,:manager,:sub_manager]
|
|
active_for_controllers ({:public=>['admin/ad_banners', 'admin/ad_images']})
|
|
|
|
head_link_path "admin_ad_banners_path"
|
|
|
|
context_link 'ad_banner.banner',
|
|
:link_path=>"admin_ad_banners_path" ,
|
|
:priority=>1,
|
|
:active_for_action=>{'admin/ad_banners'=>:index},
|
|
:available_for => [:manager]
|
|
|
|
context_link 'tags',
|
|
:link_path=>"admin_module_tags_path(module_app_id: get_module_app)" ,
|
|
:priority=>4,
|
|
:active_for_tag => 'Announcement',
|
|
:available_for => [:manager]
|
|
|
|
context_link 'module_authorization',
|
|
:link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: 'AdBanner'}))",
|
|
:priority=>6,
|
|
:active_for_app_auth => 'ad_banners',
|
|
:available_for => [:admin]
|
|
end
|
|
end
|
|
end
|