课程界面老师数量

This commit is contained in:
sw 2015-09-25 16:11:59 +08:00
parent 4765cef7bf
commit fd4a2b19c8
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<%# course_model %> <%# course_model %>
<% teacher_num = teacherCount(@course) %> <% teacher_num = searchTeacherAndAssistant(@course).count %>
<% student_num = studentCount(@course) %> <% student_num = studentCount(@course) %>
<% course_file_num = visable_attachemnts_incourse(@course).count%> <% course_file_num = visable_attachemnts_incourse(@course).count%>
<% is_teacher = User.current.logged? && (User.current.admin? || User.current.allowed_to?(:as_teacher,@course)) %> <% is_teacher = User.current.logged? && (User.current.admin? || User.current.allowed_to?(:as_teacher,@course)) %>