|
|
|
@ -24,7 +24,7 @@ class CoursesController < ApplicationController
|
|
|
|
|
:course_group_list, :set_course_group, :change_course_admin, :change_course_teacher,
|
|
|
|
|
:delete_course_teacher, :teacher_application_review, :students, :all_course_groups,
|
|
|
|
|
:transfer_to_course_group, :delete_from_course, :search_users, :add_students_by_search,
|
|
|
|
|
:base_info, :get_historical_courses, :create_group_by_importing_file,
|
|
|
|
|
:base_info, :get_historical_courses, :create_group_by_importing_file, :course_videos,
|
|
|
|
|
:attahcment_category_list,:export_member_scores_excel, :duplicate_course,
|
|
|
|
|
:switch_to_teacher, :switch_to_assistant, :switch_to_student, :exit_course,
|
|
|
|
|
:informs, :update_informs, :online_learning, :update_task_position, :tasks_list,
|
|
|
|
@ -102,6 +102,7 @@ class CoursesController < ApplicationController
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def course_videos
|
|
|
|
|
logger.info("########[#{@course}")
|
|
|
|
|
videos = @course.videos
|
|
|
|
|
videos = custom_sort(videos, params[:sort_by], params[:sort_direction])
|
|
|
|
|
@count = videos.count
|
|
|
|
|