|
|
|
@ -24,4 +24,5 @@ json.course_identity @user_course_identity
|
|
|
|
|
json.excellent @course.excellent
|
|
|
|
|
if @course.is_end == 0
|
|
|
|
|
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
|