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.
20 lines
534 B
20 lines
534 B
# 新建关卡
|
|
json.choice_url new_shixun_challenge_path(shixun_identifier, st: 1) if @power == 0
|
|
json.practice_url new_shixun_challenge_path(shixun_identifier, st: 0) if @power == 0
|
|
json.go_back_url shixun_challenges_path
|
|
if @prev_challenge
|
|
json.prev_challenge do
|
|
json.id @prev_challenge.id
|
|
json.st @prev_challenge.st
|
|
end
|
|
end
|
|
if @next_challenge
|
|
json.next_challenge do
|
|
json.id @next_challenge.id
|
|
json.st @next_challenge.st
|
|
end
|
|
end
|
|
json.position @position
|
|
json.name @challenge.try(:subject)
|
|
|