json.partial! "public_navigation", locals: {graduation: @task, course: @course} json.description @task.description json.user_id @task.user_id # 附件 json.attachments @attachments do |attachment| json.partial! "attachments/attachment_simple", locals: {attachment: attachment} end 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