json.partial! "homework_public_navigation", locals: {homework: @homework, course: @course, user: @current_user}

json.partial! "homework_btn_check", locals: {identity: @user_course_identity, homework: @homework, user: @current_user}

json.partial! "student_btn_check", locals: {identity: @user_course_identity, homework: @homework, work: @work}

json.reference_answer @homework.reference_answer

# 附件
json.attachments @attachments do |attachment|
  json.partial! "attachments/attachment_simple", locals: {attachment: attachment}
end