json.partial! "public_navigation", locals: {graduation: @task, course: @course}
json.description @task.description
json.user_id @task.user_id
json.authorize @task.user_id == current_user.id || current_user.admin_or_business?
# 附件
json.attachments @attachments do |attachment|
  json.partial! "attachments/attachment_simple", locals: {attachment: attachment}
end

json.cross_comment @task.cross_comment
json.comment_status @task.comment_status

if @user_course_identity == Course::STUDENT
  json.work_id @task.user_work(@current_user.id).try(:id)
  json.work_status graduation_work_status(@task, @current_user.id, @course)
end

# 分组要求
json.group_info do
  if @task.task_type == 2
    json.max_number @task.max_num
    json.min_number @task.min_num
    json.base_on_project @task.base_on_project
  end
end

