44 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Ruby
		
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Ruby
		
	
	
	
| module Location
 | |
|   OrbitApp.registration "Location",:type=> 'ModuleApp' do
 | |
|     module_label 'location.location'
 | |
|     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
 | |
|     
 | |
|     side_bar do
 | |
|       head_label_i18n  'location.location',:icon_class=>"icons-location"
 | |
|       available_for [:admin,:guest,:manager,:sub_manager]
 | |
|       active_for_controllers ({:private=>['locations']})
 | |
| 
 | |
|       head_link_path "panel_location_back_end_locations_path"
 | |
| 
 | |
|     end
 | |
|   end
 | |
| end
 |