| 
									
										
										
										
											2013-07-15 09:54:15 +00:00
										 |  |  | module CalendarNew | 
					
						
							|  |  |  |   OrbitApp.registration "CalendarNew",:type=> 'ModuleApp' do | 
					
						
							|  |  |  |     module_label 'calendar.calendar' | 
					
						
							|  |  |  |     base_url File.expand_path File.dirname(__FILE__)     | 
					
						
							|  |  |  |     # personal_plugin :enable => true,:path=>"panel/calendar/plugin/profile",:i18n=>'admin.calendar' | 
					
						
							|  |  |  |      | 
					
						
							|  |  |  |     version "0.1" | 
					
						
							|  |  |  |     organization "Rulingcom" | 
					
						
							|  |  |  |     author "RD dep" | 
					
						
							|  |  |  |     intro "I am intro" | 
					
						
							|  |  |  |     update_info 'some update_info' | 
					
						
							| 
									
										
										
										
											2013-07-17 03:12:34 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     authorizable | 
					
						
							|  |  |  |     categorizable | 
					
						
							|  |  |  |     taggable | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |    front_end do | 
					
						
							|  |  |  |       app_page 'events'  do  | 
					
						
							| 
									
										
										
										
											2013-11-04 15:02:01 +00:00
										 |  |  |          frontend_i18n "calendar_new.frontend.events" | 
					
						
							| 
									
										
										
										
											2013-07-17 03:12:34 +00:00
										 |  |  |       end | 
					
						
							|  |  |  |     end | 
					
						
							| 
									
										
										
										
											2013-07-15 09:54:15 +00:00
										 |  |  |      | 
					
						
							|  |  |  |     side_bar do | 
					
						
							|  |  |  |       head_label_i18n  'calendar.calendar',:icon_class=>"icons-calendar" | 
					
						
							|  |  |  |       available_for [:admin,:guest,:manager,:sub_manager] | 
					
						
							| 
									
										
										
										
											2013-11-04 08:07:49 +00:00
										 |  |  |       active_for_controllers ({:private=>['events','event_categories'],:public=>['panel/calendar_new/back_end/tags']}) | 
					
						
							| 
									
										
										
										
											2013-07-15 09:54:15 +00:00
										 |  |  |        | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       head_link_path "panel_calendar_new_back_end_events_path" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-11-04 06:44:20 +00:00
										 |  |  |       # context_link 'calendar.categories', | 
					
						
							|  |  |  |       #                       :link_path=>"admin_module_app_categories_path(get_module_app)" , | 
					
						
							|  |  |  |       #                       :priority=>2, | 
					
						
							|  |  |  |       #                       :active_for_category => 'CalendarNew', | 
					
						
							|  |  |  |       #                       :available_for => [:manager] | 
					
						
							| 
									
										
										
										
											2013-07-17 03:12:34 +00:00
										 |  |  |       context_link 'tags', | 
					
						
							|  |  |  |                             :link_path=>"admin_module_tags_path(module_app_id: get_module_app)" , | 
					
						
							|  |  |  |                             :priority=>4, | 
					
						
							|  |  |  |                             :active_for_tag => 'CalendarNew', | 
					
						
							|  |  |  |                             :available_for => [:manager] | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-11-04 06:44:20 +00:00
										 |  |  |       context_link 'calendar.categories', | 
					
						
							| 
									
										
										
										
											2013-07-22 02:20:29 +00:00
										 |  |  |                              :link_path=>"panel_calendar_new_back_end_event_categories_path" , | 
					
						
							|  |  |  |                              :priority=>3, | 
					
						
							| 
									
										
										
										
											2013-11-04 08:07:49 +00:00
										 |  |  |                              :active_for_category => 'CalendarNew', | 
					
						
							| 
									
										
										
										
											2013-07-22 02:20:29 +00:00
										 |  |  |                              :available_for => [:manager] | 
					
						
							| 
									
										
										
										
											2013-07-15 09:54:15 +00:00
										 |  |  |     end | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |