|
|
@ -7,7 +7,7 @@ json.homework_commons_count get_tasks_count course
|
|
|
|
json.attachments_count course.attachments.count
|
|
|
|
json.attachments_count course.attachments.count
|
|
|
|
json.visits course.visits
|
|
|
|
json.visits course.visits
|
|
|
|
json.school course.school&.name
|
|
|
|
json.school course.school&.name
|
|
|
|
json.teacher_users course.teacher_users.select{|u| u.id != course.tea_id }.map(&:real_name)[0..2] # 取前3名老师
|
|
|
|
json.teacher_users course.teacher_users.select{|u| u.id != course.tea_id }.map(&:real_name)[0..3] # 取前4名老师
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
json.first_category_url module_url(course.course_modules.where(hidden: 0).order(position: :desc).first, course)
|
|
|
|
json.first_category_url module_url(course.course_modules.where(hidden: 0).order(position: :desc).first, course)
|
|
|
|