json.partial! "homework_commons/homework_public_navigation", locals: {homework: @homework, course: @course, user: @current_user} json.(@work, :description, :commit_time, :update_time) json.is_evaluation @is_evaluation json.author_name @is_evaluation ? "匿名" : @work.user.real_name json.is_author @is_author json.update_user_name @is_evaluation ? "匿名" : @work.commit_user.try(:real_name) json.update_atta @homework.late_duration && @is_author json.attachments @attachments do |atta| json.partial! "attachments/attachment_simple", locals: {attachment: atta, delete: @work.delete_atta(atta)} end unless @is_evaluation if @homework.homework_type == "group" && @homework.homework_detail_group.base_on_project json.project_info project_info @work, @current_user, @user_course_identity end json.work_members @work_members.each do |member| json.user_name member.user.real_name json.user_login member.user.login end end