|  |  | @ -1,51 +1,58 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | <!--add by huang--> |  |  |  | <!--add by huang--> | 
			
		
	
		
		
			
				
					
					|  |  |  | <h3><%= l(:label_x_user_fans, :count => User.current.watcher_users(User.current.id).count)%></h3> |  |  |  | <h3><%= l(:label_x_user_fans, :count => User.current.watcher_users(User.current.id).count) %></h3> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | <div class="inf_user_image"> |  |  |  | <div class="inf_user_image"> | 
			
		
	
		
		
			
				
					
					|  |  |  | 	<% for user in @user.watcher_users %> |  |  |  |   <% for user in @user.watcher_users %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 	<ul class="list_watch"><li> |  |  |  |       <ul class="list_watch"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <table width="660px" border="0" align="center"> |  |  |  |         <li> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   <tr> |  |  |  |           <table width="660px" border="0" align="center"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     <td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(user), :class => "avatar"),  |  |  |  |             <tr> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                                                                                         user_path(user),  |  |  |  |               <td colspan="2" valign="top" width="50"><%= link_to image_tag(url_to_avatar(user), :class => "avatar"), | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                                                                                         :title => "#{user.name}" %></td>    |  |  |  |                                                                   user_path(user), | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |      <td><table width="580px" border="0"> |  |  |  |                                                                   :title => "#{user.name}" %></td> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       <tr>  <!-- modified by bai --> |  |  |  |               <td> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         <td colspan="2" valign="top"><strong><%= content_tag "div", link_to(user.name,user_path(user)), :class => "project_avatar_name" %> |  |  |  |                 <table width="580px" border="0"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         </td> |  |  |  |                   <tr>  <!-- modified by bai --> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         </tr> |  |  |  |                     <td colspan="2" valign="top"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |        |  |  |  |                       <strong><%= content_tag "div", link_to(user.name, user_path(user)), :class => "project_avatar_name" %></strong> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       	<tr> |  |  |  |                     </td> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       	<!-- added by bai 区分了个人列表里的项目与课程 --> |  |  |  |                   </tr> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |          <td colspan="2" width="580px" ><p class="font_description"> |  |  |  | 
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			<% unless user.memberships.empty? %> |  |  |  |                   <tr> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			<% cond = Project.visible_condition(User.current) + "AND projects.project_type <> 1" %> |  |  |  |                     <!-- added by bai 区分了个人列表里的项目与课程 --> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			<% memberships = user.memberships.all(:conditions => cond) %> |  |  |  |                     <td colspan="2" width="580px"><p class="font_description"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			<%= l(:label_x_contribute_to, :count => memberships.count) %> |  |  |  |                       <% unless user.memberships.empty? %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			<% for member in memberships %> |  |  |  |                           <% cond = Project.visible_condition(User.current) + " AND projects.project_type <> 1" %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			<%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : ',' %> |  |  |  |                           <% memberships = user.memberships.all(:conditions => cond) %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			<% end %> |  |  |  |                           <%= l(:label_x_contribute_to, :count => memberships.count) %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			<% end %> |  |  |  |                           <% for member in memberships %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 		 </p> |  |  |  |                               <%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : ',' %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 		 <p class="font_description"> |  |  |  |                           <% end %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			<% unless user.memberships.empty? %> |  |  |  |                       <% end %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			<% cond = Project.visible_condition(User.current) + "AND projects.project_type = 1" %> |  |  |  |                     </p> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			<% memberships = user.memberships.all(:conditions => cond) %> |  |  |  | 
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			<%= l(:label_x_course_contribute_to, :count => memberships.count) %> |  |  |  |                       <p class="font_description"> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			<% for member in memberships %> |  |  |  |                         <% unless user.memberships.empty? %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			<%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : ',' %> |  |  |  |                             <% cond = Project.visible_condition(User.current) + " AND projects.project_type = 1" %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			<% end %> |  |  |  |                             <% memberships = user.memberships.all(:conditions => cond) %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 			<% end %> |  |  |  |                             <%= l(:label_x_course_contribute_to, :count => memberships.count) %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 		  </p> |  |  |  |                             <% for member in memberships %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 		 </td> |  |  |  |                                 <%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : ',' %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         </tr> |  |  |  |                             <% end %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |        <!-- end --> |  |  |  |                         <% end %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         |  |  |  |                       </p> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       <tr>         |  |  |  |                     </td> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         <td width="200" align="right" class="font_lighter"><%= l(:label_user_joinin) %><%= format_date(user.created_on) %> |  |  |  |                   </tr> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         </td> |  |  |  |                   <!-- end --> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       </tr> |  |  |  | 
 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     </table></td> |  |  |  |                   <tr> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |   </tr> |  |  |  |                     <td width="200" align="right" class="font_lighter"><%= l(:label_user_joinin) %><%= format_date(user.created_on) %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | </table></li></ul> |  |  |  |                     </td> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | <% end %> |  |  |  |                   </tr> | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 </table> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               </td> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </tr> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           </table> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         </li> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       </ul> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   <% end %> | 
			
		
	
		
		
			
				
					
					|  |  |  | </div> |  |  |  | </div> |