|
|
@ -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
|