parent
3dd6f123ee
commit
da58ff267c
@ -1,12 +1,15 @@
|
||||
json.tags @tags do |tag|
|
||||
json.tag_id tag.id
|
||||
json.tag_name tag.name
|
||||
json.shixun_list @shixuns do |shixun|
|
||||
json.shixun_identifier shixun.identifier
|
||||
json.name shixun.name
|
||||
json.creator shixun.user&.full_name
|
||||
json.creator_login shixun.user&.login
|
||||
json.school shixun.user&.school_name
|
||||
json.myshixuns_count shixun.myshixuns_count
|
||||
json.level level_to_s(shixun.trainee)
|
||||
json.challenge_tags shixun.challenge_tags_name
|
||||
end
|
||||
|
||||
json.shixun_list do
|
||||
json.partial! 'shixuns/choose_shixun', locals: {shixuns: @shixuns}
|
||||
end
|
||||
|
||||
json.shixuns_count @shixuns_count
|
||||
json.shixuns_count @total_count
|
||||
json.search_tags @search_tags
|
||||
|
||||
json.partial! 'homework_commons/second_category', locals: {main_catrgory: @main_catrgory, homework_category: @homework_category}
|
Loading…
Reference in new issue