|
|
|
@ -21,7 +21,7 @@ if @challenges.present?
|
|
|
|
|
json.playing_count @play_games_map.fetch(challenge.id, 0)
|
|
|
|
|
#json.playing_count challenge.playing_count
|
|
|
|
|
json.name_url shixun_challenge_path(challenge, shixun_identifier: @shixun.identifier)
|
|
|
|
|
json.open_game challenge.open_game
|
|
|
|
|
json.open_game challenge.open_game(@shixun)
|
|
|
|
|
if @editable
|
|
|
|
|
json.edit_url edit_shixun_challenge_path(challenge, shixun_identifier: @shixun.identifier)
|
|
|
|
|
json.delete_url shixun_challenge_path(challenge, shixun_identifier: @shixun.identifier)
|
|
|
|
@ -29,6 +29,6 @@ if @challenges.present?
|
|
|
|
|
json.down_url index_down_shixun_challenge_path(challenge, :shixun_identifier => @shixun.identifier) if @shixun.challenges_count != challenge.position
|
|
|
|
|
end
|
|
|
|
|
#json.passed challenge.has_passed?(@user.id)
|
|
|
|
|
json.status challenge.user_tpi_status
|
|
|
|
|
json.status challenge.user_tpi_status(@shixun)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|