json.partial! "graduation_tasks/public_navigation", locals: {course: @course, graduation: @task} json.task_type @task.task_type json.(@work, :description, :commit_time, :update_time) json.author_name @work.user.real_name json.is_author @is_author json.update_user_name @work.commit_user.try(:real_name) json.task_status @task.status #6.12 -hs json.status task_curr_status(@task, @course)[:status] json.update_atta (!@course.is_end && @task.end_time < Time.now && @task.allow_late && (@task.late_time.nil? || @task.late_time > Time.now) && @is_author) json.attachments @attachments do |atta| json.partial! "attachments/attachment_simple", locals: {attachment: atta, delete: false} end if @task.task_type == 2 && @task.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