|
|
@ -17,7 +17,7 @@ if @challenges.present?
|
|
|
|
json.passed_count challenge.user_passed_count
|
|
|
|
json.passed_count challenge.user_passed_count
|
|
|
|
json.playing_count challenge.playing_count
|
|
|
|
json.playing_count challenge.playing_count
|
|
|
|
json.name_url shixun_challenge_path(challenge, shixun_identifier: @shixun.identifier)
|
|
|
|
json.name_url shixun_challenge_path(challenge, shixun_identifier: @shixun.identifier)
|
|
|
|
json.open_game challenge.open_game(@user.id, @shixun)
|
|
|
|
#json.open_game challenge.open_game(@user.id, @shixun)
|
|
|
|
if @editable
|
|
|
|
if @editable
|
|
|
|
json.edit_url edit_shixun_challenge_path(challenge, shixun_identifier: @shixun.identifier)
|
|
|
|
json.edit_url edit_shixun_challenge_path(challenge, shixun_identifier: @shixun.identifier)
|
|
|
|
json.delete_url shixun_challenge_path(challenge, shixun_identifier: @shixun.identifier)
|
|
|
|
json.delete_url shixun_challenge_path(challenge, shixun_identifier: @shixun.identifier)
|
|
|
|