mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
init project
This commit is contained in:
19
app/views/challenges/_top_common_data.jbuilder
Normal file
19
app/views/challenges/_top_common_data.jbuilder
Normal file
@@ -0,0 +1,19 @@
|
||||
# 新建关卡
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user