2016-04-15 11:26:56 +08:00
|
|
|
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', :media => 'all' %>
|
|
|
|
<h3>
|
|
|
|
<%=l(:label_excellent_courses_list)%>
|
|
|
|
</h3>
|
2016-06-13 11:10:28 +08:00
|
|
|
<%= render 'admin/tab_excellent_courses' %>
|
2016-04-15 11:26:56 +08:00
|
|
|
|
2016-03-04 15:31:40 +08:00
|
|
|
<h3>
|
|
|
|
<%=l(:label_excellent_courses_list)%>
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
<div class="autoscroll">
|
|
|
|
<table class="list" style="width: 100%;table-layout: fixed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th style="width: 25px;">
|
|
|
|
序号
|
|
|
|
</th>
|
|
|
|
<th style="width: 120px;">
|
2016-07-07 09:02:41 +08:00
|
|
|
班级名
|
2016-03-04 15:31:40 +08:00
|
|
|
</th>
|
|
|
|
<th style="width: 50px;">
|
|
|
|
主讲老师
|
|
|
|
</th>
|
|
|
|
<th style="width: 30px;">
|
|
|
|
学生数
|
|
|
|
</th>
|
|
|
|
<th style="width: 25px;">
|
|
|
|
作业数
|
|
|
|
</th>
|
|
|
|
<th style="width: 25px;">
|
|
|
|
作品数
|
|
|
|
</th>
|
|
|
|
<th style="width: 25px;">
|
|
|
|
资源数
|
|
|
|
</th>
|
2016-06-13 11:10:28 +08:00
|
|
|
<th style="width: 50px;">
|
2016-03-04 15:31:40 +08:00
|
|
|
帖子数
|
|
|
|
</th>
|
2016-06-13 11:10:28 +08:00
|
|
|
<th style="width: 50px;">
|
2016-03-04 15:31:40 +08:00
|
|
|
动态数
|
|
|
|
</th>
|
2016-06-13 11:10:28 +08:00
|
|
|
<th style="width: 40px;">
|
|
|
|
</tr>
|
2016-03-04 15:31:40 +08:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<% @courses.each do |course| %>
|
|
|
|
<tr class="<%= cycle("odd", "even") %>">
|
|
|
|
<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>
|
|
|
|
<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="buttons">
|
|
|
|
<%= link_to( course.is_excellent == 1 || course.excellent_option == 1 ? "取消精品" : "设为精品", { :controller => 'admin', :action => 'cancel_excellent_course', :id => course.id }, :class => 'icon-del') %>
|
|
|
|
</td>
|
2016-03-04 15:31:40 +08:00
|
|
|
</tr>
|
|
|
|
<% end %>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2016-03-17 15:05:14 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<% html_title(l(:label_excellent_courses_list)) -%>
|