课程大纲的教师团队:创建班级数与参与班级数均为该老师在本课程下的创建班级数与参与班级数

This commit is contained in:
cxt 2016-10-13 14:05:50 +08:00
parent b240f801b8
commit 018a27f307
1 changed files with 2 additions and 2 deletions

View File

@ -32,8 +32,8 @@
<% end%>
</td>
<% courses = user.courses.not_deleted %>
<td><%= courses.where("tea_id = #{user.id}").count %></td>
<td><%= courses.where("tea_id != #{user.id}").count %></td>
<td><%= courses.where("tea_id = #{user.id} and syllabus_id = #{@syllabus.id}").count %></td>
<td><%= courses.where("tea_id != #{user.id} and syllabus_id = #{@syllabus.id}").count %></td>
<% if is_admin %>
<td>
<% if user == @syllabus.user %>