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.
|
|
|
|
json.partial! "commons/success"
|
|
|
|
|
|
|
|
|
|
json.user_certification @user_certification #用户的认证,1为认证通过,0为未认证/认证未通过
|
|
|
|
|
json.exercises_count @public_exercises_count
|
|
|
|
|
if @public_exercises_count > 0
|
|
|
|
|
json.public_exercises do
|
|
|
|
|
json.array! @public_exercises do |exercise|
|
|
|
|
|
json.poll_name exercise.name
|
|
|
|
|
json.poll_description exercise.description
|
|
|
|
|
json.poll_id exercise.container_id
|
|
|
|
|
json.poll_user_id exercise.user_id
|
|
|
|
|
json.poll_user_name exercise.user.real_name
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
json.public_exercises []
|
|
|
|
|
end
|