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/polls/publish_modal.json.jbuilder

16 lines
340 B

json.partial! "commons/success"
if @course_groups.count > 0
json.un_publish @course_groups.count #未发布的分班
json.course_info do
json.array! @course_groups do |group|
json.course_group_id group.id
json.course_group_name group.name
end
end
else
json.un_publish 0 #未发布的分班
end