竞赛课堂数目

dev_aliyun
daiao 5 years ago
parent b120e0fde5
commit e6055191f9

@ -22,7 +22,7 @@
<% @records.each do |record| %>
<%
course = record.snapshot['course']
total_members_count += record.snapshot['members_count'].to_i
total_members_count += course.students.count
total_shixun_homework_count += record.snapshot['shixun_homework_count'].to_i
total_valid_homework_count += record.snapshot['valid_myshixun_count'].to_i
total_course_score += record.score.to_i
@ -34,7 +34,7 @@
<span class="task-hide fl" style="max-width: 480px;"><%= course.name %></span>
<% end %>
</td>
<td width="10%"><%= record.snapshot['members_count'].to_i %></td>
<td width="10%"><%= course.students.count %></td>
<td width="15%"><%= record.snapshot['shixun_homework_count'].to_i || '--' %></td>
<td width="10%"><%= record.snapshot['valid_myshixun_count'].to_i %></td>
<td width="15%"><%= record.score.to_i.zero? ? '--' : record.score.to_i %></td>
@ -67,7 +67,7 @@
<span class="task-hide fl" style="max-width: 480px;"><%= course.name %></span>
<% end %>
</td>
<td width="10%"><%= course.members_count %></td>
<td width="10%"><%= course.students.count %></td>
<td width="15%"><%= course['shixun_homework_count'].presence || '--' %></td>
<td width="10%"><%= @course_myshixun_map.fetch(course.id, '--') %></td>
<td width="15%"><%= score.zero? ? '--' : score %></td>

Loading…
Cancel
Save