2016-04-15 11:26:56 +08:00
|
|
|
<td style="text-align: center;">
|
|
|
|
<%= course.id %>
|
|
|
|
</td>
|
|
|
|
<td style="white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" class="name" title='<%=course.name%>'>
|
|
|
|
<span>
|
|
|
|
<%= link_to(course.name, course_path(course.id)) %>
|
|
|
|
</span>
|
|
|
|
</td>
|
2016-06-28 14:39:43 +08:00
|
|
|
<td align="center">
|
|
|
|
<%= checked_image course.is_public? %>
|
|
|
|
</td>
|
2016-04-15 11:26:56 +08:00
|
|
|
<td align="center">
|
|
|
|
<%= link_to(course.try(:teacher).try(:realname).truncate(6, omission: '...'), user_path(course.teacher)) %>
|
|
|
|
</td>
|
|
|
|
<td align="center">
|
|
|
|
<%= studentCount(course) %>
|
|
|
|
</td>
|
|
|
|
<td class="center">
|
|
|
|
<%= course.homework_commons.count%>
|
|
|
|
</td>
|
|
|
|
<td class="center">
|
|
|
|
<%= student_works_num(course) %>
|
|
|
|
</td>
|
|
|
|
<td class="center">
|
|
|
|
<%= visable_attachemnts_incourse(course).count%>
|
|
|
|
</td>
|
|
|
|
<td class="center">
|
|
|
|
<%= course.boards.first.topics.count + Message.where("board_id =? and parent_id is not ?", course.boards.first.id, nil).count %>
|
|
|
|
</td>
|
|
|
|
<td class="center">
|
|
|
|
<%= course.course_activities.count%>
|
|
|
|
</td>
|
2016-06-13 11:10:28 +08:00
|
|
|
<td class="center">
|
|
|
|
<%= course.time %>
|
|
|
|
</td>
|
2016-04-15 11:26:56 +08:00
|
|
|
<td class="buttons">
|
|
|
|
<%= link_to( course.is_excellent == 1 || course.excellent_option == 1 ? "取消精品" : "设为精品", { :controller => 'admin', :action => 'set_excellent_course', :id => course.id },:remote=>true, :class => 'icon-del') %>
|
|
|
|
</td>
|