课程大纲的教师团队:创建班级数与参与班级数均为该老师在本课程下的创建班级数与参与班级数
This commit is contained in:
parent
b240f801b8
commit
018a27f307
|
@ -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 %>
|
||||
|
|
Loading…
Reference in New Issue