You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
437 B
16 lines
437 B
json.courses @courses do |course|
|
|
json.course_id course.id
|
|
json.course_name course.name
|
|
json.created_at course.created_at
|
|
end
|
|
|
|
json.stages @subject.stages do |stage|
|
|
index = 1
|
|
json.shixuns stage.shixuns do |shixun|
|
|
if shixun.status == 2 && !@none_shixun_ids.include?(shixun.id)
|
|
json.shixun_id shixun.id
|
|
json.shixun_name "#{stage.position}-#{index} #{shixun.name}"
|
|
end
|
|
index += 1
|
|
end
|
|
end |