Orbit/vendor/built_in_modules/videos/init.rb

68 lines
2.4 KiB
Ruby
Raw Normal View History

2013-07-18 10:33:14 +00:00
module Videos
OrbitApp.registration "Videos",:type=> 'ModuleApp' do
module_label 'video.video'
base_url File.expand_path File.dirname(__FILE__)
# personal_plugin :enable => true,:path=>"panel/location/plugin/profile",:i18n=>'admin.location'
# version "0.1"
# organization "Rulingcom"
# author "RD dep"
# intro "I am intro"
# update_info 'some update_info'
# 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 'LocationTag.all'
# customize_widget "index","location.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","location.widget.bulletins_and_web_links"
# # item "index","location.widget.index",:default_template=>true,:fields=>["title","category","postdate"]
# # item "bulletins_and_web_links","location.widget.bulletins_and_web_links"
# end
2013-07-24 10:29:49 +00:00
widgets do
default_widget do
enable ['typeB_style3', 'typeB_style4']
# image :image
end
# tags_query 'GalleryTag.all'
#* customize_widget "albums","gallery.widget.albums",:fields=>[],:style=>[],:options=>{"widget1"=>{"vertical"=>[1, 2], "horizontal"=>[1, 2, 3, 4, 5, 6], "album_id"=>{"query"=>"GalleryAlbum.all", "value"=>:id, "label"=>:name}}}
#* customize_widget_options_fields_i18n({"widget1"=>{"vertical"=>"gallery.widget_option.vertical", "horizontal"=>"gallery.widget_option.horizontal", "album_id"=>"gallery.album"}} )
customize_widget "channel_videos" do
widget_i18n "videos.widget.channel_videos"
end
end
2013-07-18 10:33:14 +00:00
side_bar do
2013-07-24 03:47:42 +00:00
head_label_i18n 'video.channel',:icon_class=>"icon-facetime-video"
2013-07-18 10:33:14 +00:00
available_for [:admin,:guest,:manager,:sub_manager]
active_for_controllers ({:private=>['videos']})
2013-07-24 03:47:42 +00:00
head_link_path "panel_videos_back_end_channel_videos_path"
2013-07-18 10:33:14 +00:00
2013-07-24 03:47:42 +00:00
context_link 'video.videos',
:link_path=>"panel_videos_back_end_videos_path" ,
:priority=>1,
:active_for_action=>{:channel_videos=>:index},
:available_for => [:manager]
2013-07-18 10:33:14 +00:00
end
end
end