|
|
@ -8,10 +8,13 @@ json.group_list do
|
|
|
|
end
|
|
|
|
end
|
|
|
|
# 未分班展示情况放在最后
|
|
|
|
# 未分班展示情况放在最后
|
|
|
|
if @course_groups.count < @limit.to_i
|
|
|
|
if @course_groups.count < @limit.to_i
|
|
|
|
json.ungroup_list do
|
|
|
|
ungroup_work_count = homework_ungroup_works_count(@homework, @ungroup_user_ids)
|
|
|
|
json.id 0
|
|
|
|
if ungroup_work_count > 0
|
|
|
|
json.name "未分班"
|
|
|
|
json.ungroup_list do
|
|
|
|
json.work_count homework_ungroup_works_count @homework, @ungroup_user_ids
|
|
|
|
json.id 0
|
|
|
|
json.last_review_time ungroup_last_review_time @homework
|
|
|
|
json.name "未分班"
|
|
|
|
|
|
|
|
json.work_count ungroup_work_count
|
|
|
|
|
|
|
|
json.last_review_time ungroup_last_review_time @homework
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|