取消学号显示,增加参与人员在作业列表的显示

This commit is contained in:
sw 2014-06-19 14:01:18 +08:00
parent 71bb76ff91
commit d38e009469
1 changed files with 7 additions and 4 deletions

View File

@ -72,12 +72,15 @@
<strong>参与人员:&nbsp;</strong>
<% homework_users = "" %>
<% homework.users.each do |user| %>
<% homework_users = user.name %>
<% homework_users = homework_users + user.name %>
<% if user != homework.users.last %>
<% homework_users = homework_users + "、" %>
<% end %>
<% end %>
<% if homework.users.count == 0 %>
<% else %>
<%= homework_users %>
<span title="<%= homework_users%>"><%= homework_users %></span>
<% end %>
</td>
<td rowspan="4" style="text-align: center;vertical-align: middle;width: 30px">
@ -114,7 +117,7 @@
</td>
<td>
<strong>互评得分:&nbsp;
<span class="required"><%= format("%.2f", homework.rate_averages.first.try(:avg).to_f ) %></span>&nbsp;&nbsp;
<span class="required"><%= format("%.2f", homework.rate_averages.first.try(:avg).to_f ) %></span>&nbsp;&nbsp;
<%= link_to "学生互评>>",homework_attach_path(homework) %></strong>
</td>
</tr>
@ -125,7 +128,7 @@
</td>
<td>
<strong>综评得分:&nbsp;
<span class="required"><%= format("%.2f", homework.rate_averages.first.try(:avg).to_f ) %></span>&nbsp;&nbsp;
<span class="required"><%= format("%.2f", homework.rate_averages.first.try(:avg).to_f ) %></span>&nbsp;&nbsp;
<%= link_to "教师评分>>",homework_attach_path(homework) %></strong>
</td>
</tr>