You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/views/graduation_tasks/show.json.jbuilder

24 lines
677 B

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