| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  | module WebResource | 
					
						
							|  |  |  |   OrbitApp.registration "WebResource",:type=> 'ModuleApp' do | 
					
						
							|  |  |  |     module_label 'link' | 
					
						
							|  |  |  |     base_url File.expand_path File.dirname(__FILE__)     | 
					
						
							|  |  |  |     # personal_plugin :enable => true,:path=>"panel/web_resource/plugin/profile",:i18n=>'admin.web_resource' | 
					
						
							|  |  |  |      | 
					
						
							|  |  |  |     version "0.1" | 
					
						
							|  |  |  |     organization "Rulingcom" | 
					
						
							|  |  |  |     author "RD dep" | 
					
						
							|  |  |  |     intro "I am intro" | 
					
						
							|  |  |  |     update_info 'some update_info' | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-04-10 07:26:57 +00:00
										 |  |  |     front_end do | 
					
						
							|  |  |  |       app_page 'web_links' do  | 
					
						
							|  |  |  |         frontend_i18n "web_resource.frontend.web_link" | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  |     end | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-07-02 08:46:44 +00:00
										 |  |  |     authorizable | 
					
						
							| 
									
										
										
										
											2013-07-22 06:59:33 +00:00
										 |  |  |     categorizable | 
					
						
							| 
									
										
										
										
											2013-07-02 08:46:44 +00:00
										 |  |  |     taggable | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |     widgets do | 
					
						
							|  |  |  |       # default_widget do | 
					
						
							|  |  |  |       #   query 'Bulletin.all' | 
					
						
							|  |  |  |       #   image :image | 
					
						
							|  |  |  |       # end | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-04-10 07:26:57 +00:00
										 |  |  |       categories_query 'WebLinkCategory.all' | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |       tags_query 'WebResourceTag.all' | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-04-10 07:26:57 +00:00
										 |  |  |       customize_widget "index" do  | 
					
						
							|  |  |  |         widget_i18n "web_resource.widget.index" | 
					
						
							| 
									
										
										
										
											2013-01-29 12:33:40 +00:00
										 |  |  |       end | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |     end | 
					
						
							|  |  |  |      | 
					
						
							|  |  |  |     side_bar do | 
					
						
							|  |  |  |       head_label_i18n  'link',:icon_class=>"icons-link" | 
					
						
							|  |  |  |       available_for [:admin,:guest,:manager,:sub_manager] | 
					
						
							| 
									
										
										
										
											2013-07-22 06:59:33 +00:00
										 |  |  |       active_for_controllers ({:private=>['web_links', 'web_link_categorys','module_tags', 'categories']}) | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |       active_for_object_auth ['WebLinkCategory']  | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       head_link_path "panel_web_resource_back_end_web_links_path" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       context_link 'list_', | 
					
						
							|  |  |  |                             :link_path=>"panel_web_resource_back_end_web_links_path" , | 
					
						
							|  |  |  |                             :priority=>1, | 
					
						
							| 
									
										
										
										
											2012-12-07 04:40:47 +00:00
										 |  |  |                             :active_for_action=>{:web_links=>:index}, | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |                             :available_for => [:all] | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-03-12 10:13:48 +00:00
										 |  |  |       context_link 'add',  | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |                             :link_path=>"new_panel_web_resource_back_end_web_link_path" , | 
					
						
							|  |  |  |                             :priority=>2, | 
					
						
							| 
									
										
										
										
											2012-12-07 04:40:47 +00:00
										 |  |  |                             :active_for_action=>{:web_links=>:new}, | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |                             :available_for => [:sub_manager] | 
					
						
							|  |  |  |       context_link 'categories', | 
					
						
							| 
									
										
										
										
											2013-07-22 06:59:33 +00:00
										 |  |  |                             :link_path=>"admin_module_app_categories_path(get_module_app)" , | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |                             :priority=>3, | 
					
						
							| 
									
										
										
										
											2013-07-22 06:59:33 +00:00
										 |  |  |                             :active_for_category => 'WebResource', | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |                             :available_for => [:manager] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       context_link 'tags', | 
					
						
							| 
									
										
										
										
											2013-07-02 08:46:44 +00:00
										 |  |  |                             :link_path=>"admin_module_tags_path(:module_app_id => ModuleApp.first(conditions: {title: 'WebResource'}))" , | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |                             :priority=>4, | 
					
						
							| 
									
										
										
										
											2013-07-02 08:46:44 +00:00
										 |  |  |                             :active_for_tag => 'WebResource', | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |                             :available_for => [:manager] | 
					
						
							|  |  |  |     end | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |