|
|
@ -9,6 +9,7 @@
|
|
|
|
<th width="6%">普通作业</th>
|
|
|
|
<th width="6%">普通作业</th>
|
|
|
|
<th width="5%">实训作业</th>
|
|
|
|
<th width="5%">实训作业</th>
|
|
|
|
<th width="4%">试卷</th>
|
|
|
|
<th width="4%">试卷</th>
|
|
|
|
|
|
|
|
<th width="6%">评测次数</th>
|
|
|
|
<th width="4%">私有</th>
|
|
|
|
<th width="4%">私有</th>
|
|
|
|
<th width="7%">状态</th>
|
|
|
|
<th width="7%">状态</th>
|
|
|
|
<th width="8%" class="edu-txt-left">创建者单位</th>
|
|
|
|
<th width="8%" class="edu-txt-left">创建者单位</th>
|
|
|
@ -28,6 +29,7 @@
|
|
|
|
<td><%= course.homework_commons.where(:homework_type => 1).count %></td>
|
|
|
|
<td><%= course.homework_commons.where(:homework_type => 1).count %></td>
|
|
|
|
<td><%= course.homework_commons.where(:homework_type => 4).count %></td>
|
|
|
|
<td><%= course.homework_commons.where(:homework_type => 4).count %></td>
|
|
|
|
<td><%= course.exercises.count %></td>
|
|
|
|
<td><%= course.exercises.count %></td>
|
|
|
|
|
|
|
|
<td><%= course.evaluate_count %></td>
|
|
|
|
<td><%= course.is_public.to_i == 1 ? '--' : '√' %></td>
|
|
|
|
<td><%= course.is_public.to_i == 1 ? '--' : '√' %></td>
|
|
|
|
<td><%= course.is_end ? "已结束" : "正在进行" %></td>
|
|
|
|
<td><%= course.is_end ? "已结束" : "正在进行" %></td>
|
|
|
|
<td class="edu-txt-left"><%= course.teacher.try(:user_extensions).try(:school).try(:name).blank? ? "--" : course.teacher.try(:user_extensions).try(:school) %></td>
|
|
|
|
<td class="edu-txt-left"><%= course.teacher.try(:user_extensions).try(:school).try(:name).blank? ? "--" : course.teacher.try(:user_extensions).try(:school) %></td>
|
|
|
|