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.lives @lives do |live|
|
|
|
|
json.(live, :id, :description, :on_status, :duration, :course_name, :platform)
|
|
|
|
json.url live.on_status ? live.url : ""
|
|
|
|
json.author_name live.user.show_real_name
|
|
|
|
json.author_login live.user.login
|
|
|
|
json.author_img url_to_avatar(live.user)
|
|
|
|
json.op_auth live.op_auth?
|
|
|
|
json.delete_auth live.delete_auth?
|
|
|
|
json.live_time live.live_time&.strftime('%Y-%m-%d %H:%M:%S')
|
|
|
|
end
|
|
|
|
json.my_live_id @my_live_id
|
|
|
|
json.total_count @total_count
|