|
|
@ -13,5 +13,6 @@ json.courses @courses do |course|
|
|
|
|
json.is_end course.is_end
|
|
|
|
json.is_end course.is_end
|
|
|
|
json.first_category_url module_url(course.none_hidden_course_modules.first, course)
|
|
|
|
json.first_category_url module_url(course.none_hidden_course_modules.first, course)
|
|
|
|
json.excellent course.excellent
|
|
|
|
json.excellent course.excellent
|
|
|
|
|
|
|
|
json.teacher_users course.teacher_users.select{|u| u.id != course.tea_id }.map(&:real_name)[0..2] # 取前3名老师
|
|
|
|
end
|
|
|
|
end
|
|
|
|
json.courses_count @courses_count
|
|
|
|
json.courses_count @courses_count
|
|
|
|