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.
15 lines
451 B
15 lines
451 B
6 years ago
|
json.shixun_list @shixuns do |shixun|
|
||
|
json.shixun_id shixun.id
|
||
|
json.identifier shixun.identifier
|
||
|
json.shixun_name shixun.name
|
||
|
json.description shixun.description
|
||
|
json.myshixuns_count shixun.myshixuns_count
|
||
|
json.school shixun.user&.school_name
|
||
|
json.creator shixun.user&.full_name
|
||
|
json.level level_to_s(shixun.trainee)
|
||
|
json.subjects shixun.subjects do |subject|
|
||
|
json.(subject, :id, :name)
|
||
|
end
|
||
|
end
|
||
|
|
||
|
json.shixuns_count @total_count
|