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.is_leader_work @work.user_id == @work.commit_user_id if @task.task_type == 2

json.author_name @work.user.real_name
json.is_author @is_author
json.commit_user_name @work.commit_user.try(:real_name)
json.update_user_name @work.update_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 |work|
  json.user_name work.user.real_name
  json.user_login work.user.login
  json.work_id work.id
  json.is_leader work.user_id == work.commit_user_id
end


