课程界面老师数量
This commit is contained in:
parent
4765cef7bf
commit
fd4a2b19c8
|
@ -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)) %>
|
||||||
|
|
Loading…
Reference in New Issue