|
|
|
@ -246,6 +246,7 @@ module CoursesHelper
|
|
|
|
|
|
|
|
|
|
def left_group_info course
|
|
|
|
|
group_info = []
|
|
|
|
|
if course.course_groups_count > 0
|
|
|
|
|
course.course_groups.each do |course_group|
|
|
|
|
|
group_info << {category_id: course_group.id, category_name: course_group.name, position: course_group.position,
|
|
|
|
|
category_count: course_group.course_members_count, category_type: false,
|
|
|
|
@ -256,5 +257,6 @@ module CoursesHelper
|
|
|
|
|
category_count: none_group_count, category_type: false,
|
|
|
|
|
second_category_url: "/courses/#{@course.id}/course_groups/0"}
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|