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/exercises/end_modal.json.jbuilder

11 lines
280 B

6 years ago
if @course_groups.size >0
json.on_commiting @course_groups.size #未发布的分班
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.on_commiting 0
end