2012-12-07 04:40:21 +00:00
|
|
|
module Location
|
|
|
|
OrbitApp.registration "Location",:type=> 'ModuleApp' do
|
2013-02-06 09:44:38 +00:00
|
|
|
module_label 'location.location'
|
2012-12-07 04:40:21 +00:00
|
|
|
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-08 09:34:32 +00:00
|
|
|
|
|
|
|
categorizable
|
2013-08-22 07:18:54 +00:00
|
|
|
authorizable
|
2012-12-07 04:40:21 +00:00
|
|
|
|
|
|
|
side_bar do
|
2013-02-06 09:44:38 +00:00
|
|
|
head_label_i18n 'location.location',:icon_class=>"icons-location"
|
2012-12-07 04:40:21 +00:00
|
|
|
available_for [:admin,:guest,:manager,:sub_manager]
|
2013-11-12 08:39:08 +00:00
|
|
|
active_for_controllers ({:private=>['locations','location_categories']})
|
2012-12-07 04:40:21 +00:00
|
|
|
|
2013-02-04 10:06:45 +00:00
|
|
|
head_link_path "panel_location_back_end_locations_path"
|
2012-12-07 04:40:21 +00:00
|
|
|
|
2013-07-08 09:34:32 +00:00
|
|
|
context_link 'location.all_locations',
|
|
|
|
:link_path=>"panel_location_back_end_locations_path" ,
|
|
|
|
:priority=>1,
|
2013-11-12 08:39:08 +00:00
|
|
|
:active_for_action=>{:locations=>:index},
|
2013-07-08 09:34:32 +00:00
|
|
|
:available_for => [:manager]
|
|
|
|
|
|
|
|
context_link 'location.add_location',
|
|
|
|
:link_path=>"new_panel_location_back_end_location_path" ,
|
|
|
|
:priority=>1,
|
2013-11-12 08:39:08 +00:00
|
|
|
:active_for_action=>{:locations=>:new},
|
2013-07-08 09:34:32 +00:00
|
|
|
:available_for => [:manager]
|
|
|
|
|
|
|
|
|
|
|
|
context_link 'location.categories',
|
2013-11-12 08:39:08 +00:00
|
|
|
:link_path=>"panel_location_back_end_location_categories_path" ,
|
2013-07-08 09:34:32 +00:00
|
|
|
:priority=>1,
|
2013-11-12 08:39:08 +00:00
|
|
|
:active_for_category => 'Location',
|
2013-07-08 09:34:32 +00:00
|
|
|
:available_for => [:manager]
|
|
|
|
|
2012-12-07 04:40:21 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|