|
|
@ -6,22 +6,47 @@
|
|
|
|
<ul class="list_watch"><li>
|
|
|
|
<ul class="list_watch"><li>
|
|
|
|
<table width="660px" border="0" align="center">
|
|
|
|
<table width="660px" border="0" align="center">
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :title => "#{user.name}" %></td>
|
|
|
|
<!-- modified by bai 显示人名全称-->
|
|
|
|
|
|
|
|
<td colspan="2" valign="top" width="50" ><%= link_to image_tag(url_to_avatar(user), :class => "avatar"),
|
|
|
|
|
|
|
|
user_path(user),
|
|
|
|
|
|
|
|
:title => "#{user.show_name}" %></td>
|
|
|
|
<td><table width="580px" border="0">
|
|
|
|
<td><table width="580px" border="0">
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td colspan="2" valign="top"><strong><%= content_tag "div", link_to_user(user), :class => "project_avatar_name" %>
|
|
|
|
<td colspan="2" valign="top"><strong><%= content_tag "div", link_to_user(user.show_name), :class => "project_avatar_name" ,
|
|
|
|
|
|
|
|
:title => "#{user.show_name}" %>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- added by bai 增加了学员的学号 -->
|
|
|
|
|
|
|
|
<%= l(:label_bidding_user_studentcode) %> :<%= user.user_extensions.student_id%>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<!-- modified by bai 区分课程与项目-->
|
|
|
|
<td colspan="2" width="580px" ><p class="font_description">
|
|
|
|
<td colspan="2" width="580px" ><p class="font_description">
|
|
|
|
<% unless user.memberships.empty? %>
|
|
|
|
<% unless user.memberships.empty? %>
|
|
|
|
<%= l(:label_x_contribute_to, :count => user.memberships.count) %>
|
|
|
|
<% cond = Project.visible_condition(User.current) + "AND projects.project_type <> 1" %>
|
|
|
|
|
|
|
|
<% memberships = user.memberships.all(:conditions => cond) %>
|
|
|
|
|
|
|
|
<%= l(:label_x_contribute_to, :count => memberships.count) %>
|
|
|
|
<% for member in user.memberships %>
|
|
|
|
<% for member in user.memberships %>
|
|
|
|
<%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : ',' %>
|
|
|
|
<%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : ',' %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</p></td>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- added by bai -->
|
|
|
|
|
|
|
|
<p class="font_description">
|
|
|
|
|
|
|
|
<% unless user.memberships.empty? %>
|
|
|
|
|
|
|
|
<% cond = Project.visible_condition(User.current) + "AND projects.project_type = 1" %>
|
|
|
|
|
|
|
|
<% memberships = user.memberships.all(:conditions => cond) %>
|
|
|
|
|
|
|
|
<%= l(:label_x_course_contribute_to, :count => memberships.count) %>
|
|
|
|
|
|
|
|
<% for member in memberships %>
|
|
|
|
|
|
|
|
<%= link_to_project(member.project) %><%= (user.memberships.last == member) ? '' : ',' %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<!-- end -->
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<tr>
|
|
|
|
<td width="200" align="right" class="font_lighter"><%= l(:label_user_joinin) %><%= format_date(user.created_on) %>
|
|
|
|
<td width="200" align="right" class="font_lighter"><%= l(:label_user_joinin) %><%= format_date(user.created_on) %>
|
|
|
|
</td>
|
|
|
|
</td>
|
|
|
|