竞赛参与者的人数统计

This commit is contained in:
baiyu 2013-11-16 10:51:22 +08:00
parent 2932f5a940
commit eb36cb40ce
2 changed files with 7 additions and 3 deletions

View File

@ -166,11 +166,15 @@
</tr>
<% else %>
<tr>
<td><%= l(:label_bidding_user) %>
<td><strong><%= l(:label_bidding_user) %>
<% unless b_project.user.nil? %>
<%= b_project.user.lastname %><%= b_project.user.firstname %>
<% end %>
<% end %></strong>
<!-- added by bai 加入学号 -->
<p><strong><%= l(:label_bidding_user_studentcode) %> <%= b_project.user.user_extensions.student_id%></strong></p>
</td>
<!-- end -->
</tr>
<tr>
<td style=" word-wrap: break-word; word-break: break-all"><%= l(:label_bidding_reason) %><%= b_project.description %></td>

View File

@ -1,5 +1,5 @@
<!--add by bai-->
<h3><%= l(:label_x_join_in_contest, :count => @bid.join_in_contests.count)%></h3>
<h3><%=link_to l(:label_x_join_in_contest, :count => @bid.join_in_contests.count)+"("+@bid.join_in_contests(@user.id).count.to_s+")", :controller=>"bids", :action=>"show_participator"%></h3>
<div class="inf_user_image">
<% for temp in @bid.join_in_contests %>
<% user = temp.user %>