# complete_status: 章节实训的通关状态
# shixun_status: 实训路径详情列表，右侧实训的状态显示栏
# shixun_path: 实训详情按钮的链接
# tpi_path: 开始实战按钮的链接

json.stage_id stage.id
json.stage_name stage.name
json.stage_description stage.description
json.stage_position stage.position
json.up_path "/stages/#{stage.id}/up_position"
json.down_path "/stages/#{stage.id}/down_position"

json.shixuns_list do
    json.array! stage.shixuns do |shixun|
        json.shixun_name shixun.name
        json.shixun_hidden shixun.hidden
        json.identifier shixun.identifier
        json.complete_status stage_myshixun_status(shixun, user)
        json.shixun_status stage_shixun_status(subject.status, shixun.status, shixun.hidden)
    end
end