课堂老师加入申请审批条数

dev_auth
cxt 5 years ago
parent 1a565231e4
commit 7fd54fec13

@ -25,3 +25,4 @@ json.excellent @course.excellent
if @course.is_end == 0 if @course.is_end == 0
json.days_remaining (@course.end_date.to_date - Time.now.to_date).to_i json.days_remaining (@course.end_date.to_date - Time.now.to_date).to_i
end end
json.teacher_applies_count CourseMessage.unhandled_join_course_requests_by_course(@course).size if @user_course_identity < Course::ASSISTANT_PROFESSOR
Loading…
Cancel
Save