取消学号显示,增加参与人员在作业列表的显示
This commit is contained in:
parent
71bb76ff91
commit
d38e009469
|
@ -72,12 +72,15 @@
|
||||||
<strong>参与人员: </strong>
|
<strong>参与人员: </strong>
|
||||||
<% homework_users = "" %>
|
<% homework_users = "" %>
|
||||||
<% homework.users.each do |user| %>
|
<% 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 %>
|
<% end %>
|
||||||
<% if homework.users.count == 0 %>
|
<% if homework.users.count == 0 %>
|
||||||
无
|
无
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= homework_users %>
|
<span title="<%= homework_users%>"><%= homework_users %></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
<td rowspan="4" style="text-align: center;vertical-align: middle;width: 30px">
|
<td rowspan="4" style="text-align: center;vertical-align: middle;width: 30px">
|
||||||
|
@ -114,7 +117,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<strong>互评得分:
|
<strong>互评得分:
|
||||||
<span class="required"><%= format("%.2f", homework.rate_averages.first.try(:avg).to_f ) %></span>
|
<span class="required"><%= format("%.2f", homework.rate_averages.first.try(:avg).to_f ) %>分</span>
|
||||||
<%= link_to "学生互评>>",homework_attach_path(homework) %></strong>
|
<%= link_to "学生互评>>",homework_attach_path(homework) %></strong>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -125,7 +128,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<strong>综评得分:
|
<strong>综评得分:
|
||||||
<span class="required"><%= format("%.2f", homework.rate_averages.first.try(:avg).to_f ) %></span>
|
<span class="required"><%= format("%.2f", homework.rate_averages.first.try(:avg).to_f ) %>分</span>
|
||||||
<%= link_to "教师评分>>",homework_attach_path(homework) %></strong>
|
<%= link_to "教师评分>>",homework_attach_path(homework) %></strong>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in New Issue