| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  | module Archive | 
					
						
							|  |  |  |   OrbitApp.registration "Archive",:type=> 'ModuleApp' do | 
					
						
							| 
									
										
										
										
											2013-02-06 09:44:38 +00:00
										 |  |  |     module_label 'archive.archive' | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |     base_url File.expand_path File.dirname(__FILE__)     | 
					
						
							| 
									
										
										
										
											2012-12-25 03:26:23 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-03-07 09:59:53 +00:00
										 |  |  |     # personal_plugin :enable => true,:path=>"panel/archive/plugin/profile",:i18n=>'archive.archive' | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |      | 
					
						
							|  |  |  |     version "0.1" | 
					
						
							|  |  |  |     organization "Rulingcom" | 
					
						
							|  |  |  |     author "RD dep" | 
					
						
							|  |  |  |     intro "I am intro" | 
					
						
							|  |  |  |     update_info 'some update_info' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     front_end do | 
					
						
							| 
									
										
										
										
											2013-07-22 06:59:33 +00:00
										 |  |  |       app_page 'archive_files'  do  | 
					
						
							| 
									
										
										
										
											2013-02-18 07:13:31 +00:00
										 |  |  |         frontend_i18n "archive.frontend.archive" | 
					
						
							| 
									
										
										
										
											2013-07-22 06:59:33 +00:00
										 |  |  |         style ["1","2"] | 
					
						
							| 
									
										
										
										
											2013-02-18 07:13:31 +00:00
										 |  |  |       end | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |     end | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-07-22 06:59:33 +00:00
										 |  |  |     # category ["ArchiveFileCategory"] | 
					
						
							| 
									
										
										
										
											2013-03-07 09:59:53 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-07-02 08:46:44 +00:00
										 |  |  |     authorizable | 
					
						
							| 
									
										
										
										
											2013-07-22 06:59:33 +00:00
										 |  |  |     categorizable | 
					
						
							| 
									
										
										
										
											2013-05-24 10:42:01 +00:00
										 |  |  |     taggable | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |     widgets do | 
					
						
							|  |  |  |       # default_widget do | 
					
						
							| 
									
										
										
										
											2013-03-07 09:59:53 +00:00
										 |  |  |       #   query 'ArchiveFile.all' | 
					
						
							|  |  |  |       #   field :category | 
					
						
							|  |  |  |       #   link_field :title,{:method => 'panel_archive_front_end_archive_file_path',:args=>:self} | 
					
						
							|  |  |  |       #   link_field :archive_file_category_with_title,{:method => 'panel_archive_front_end_archive_files_path',:args=>{:category_id => [:archive_file_category,:id]}} | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |       # end | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-03-07 09:59:53 +00:00
										 |  |  |       categories_query 'ArchiveFileCategory.all' | 
					
						
							|  |  |  |       tags_query 'ArchiveTag.all' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       customize_widget "index" do  | 
					
						
							|  |  |  |         widget_i18n "archive.widget.index" | 
					
						
							| 
									
										
										
										
											2013-07-22 06:59:33 +00:00
										 |  |  |         style ["1","2"] | 
					
						
							| 
									
										
										
										
											2013-01-29 12:33:40 +00:00
										 |  |  |       end | 
					
						
							| 
									
										
										
										
											2013-06-05 10:03:09 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |       customize_widget "archive_search_block" do | 
					
						
							|  |  |  |         widget_i18n "announcement.widget.search" | 
					
						
							|  |  |  |       end | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-03-07 09:59:53 +00:00
										 |  |  |       # item "index","announcement.widget.index",:default_template=>true,:fields=>["title","category","postdate"] | 
					
						
							|  |  |  |       # item "bulletins_and_web_links","announcement.widget.bulletins_and_web_links" | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |     end | 
					
						
							| 
									
										
										
										
											2013-03-07 09:59:53 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |      | 
					
						
							|  |  |  |     side_bar do | 
					
						
							| 
									
										
										
										
											2013-02-06 09:44:38 +00:00
										 |  |  |       head_label_i18n  'archive.archive',:icon_class=>"icons-archive" | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |       available_for [:admin,:guest,:manager,:sub_manager] | 
					
						
							| 
									
										
										
										
											2013-07-22 06:59:33 +00:00
										 |  |  |       # active_for_controllers ({:private=>['archive_file_categorys','archive_files'],:public=>['panel/archive/back_end/tags']}) | 
					
						
							|  |  |  |       active_for_controllers ({:private=>['archive_file_categorys','archive_files','module_tags', 'categories']}) | 
					
						
							| 
									
										
										
										
											2013-06-26 07:35:35 +00:00
										 |  |  |       active_for_object_auth ['ArchiveFileCategory']  | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |       head_link_path "panel_archive_back_end_archive_files_path" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-03-12 10:13:48 +00:00
										 |  |  |       context_link 'all', | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |                             :link_path=>"panel_archive_back_end_archive_files_path" , | 
					
						
							|  |  |  |                             :priority=>1, | 
					
						
							| 
									
										
										
										
											2012-12-07 04:40:47 +00:00
										 |  |  |                             :active_for_action=>{:archive_files=>:index}, | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |                             :available_for => [:all] | 
					
						
							|  |  |  |       context_link 'add',  | 
					
						
							|  |  |  |                             :link_path=>"new_panel_archive_back_end_archive_file_path" , | 
					
						
							|  |  |  |                             :priority=>2, | 
					
						
							| 
									
										
										
										
											2012-12-07 04:40:47 +00:00
										 |  |  |                             :active_for_action=>{:archive_files=>:new}, | 
					
						
							| 
									
										
										
										
											2013-06-26 07:35:35 +00:00
										 |  |  |                             :available_for => [:sub_manager] | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |       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 => 'Archive', | 
					
						
							| 
									
										
										
										
											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: get_module_app)" , | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  |                             :priority=>4, | 
					
						
							| 
									
										
										
										
											2013-07-02 08:46:44 +00:00
										 |  |  |                             :active_for_tag => 'Archive', | 
					
						
							| 
									
										
										
										
											2013-06-26 07:35:35 +00:00
										 |  |  |                             :available_for => [:manager] | 
					
						
							| 
									
										
										
										
											2012-12-05 10:35:58 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  |     end | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |