|
|
|
@ -5,9 +5,11 @@ json.chooses do
|
|
|
|
|
json.type choose.category
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
json.st @challenge.st
|
|
|
|
|
|
|
|
|
|
if @tab == 0
|
|
|
|
|
# 本关任务tab的编辑模式
|
|
|
|
|
json.(@challenge, :id, :subject, :task_pass, :difficulty, :score, :exec_time)
|
|
|
|
|
json.(@challenge, :id, :subject, :task_pass, :difficulty, :score, :exec_time, :st)
|
|
|
|
|
json.tags @challenge.challenge_tags.map(&:name)
|
|
|
|
|
elsif @tab == 1
|
|
|
|
|
# 评测设置的编辑模式
|
|
|
|
|