diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index c85a4cc9e..4562c4eba 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -846,6 +846,7 @@ class CoursesController < ApplicationController @orgs_not_in_course = User.current.organizations.where("organizations.id not in #{course_org_ids}") end +=begin course_module = CourseModule.where(:course_id => @course.id).first @module = { course_module.boards => 'boards', @@ -860,6 +861,7 @@ class CoursesController < ApplicationController @course_board = @course.boards.where("parent_id is NULL").first @board = @course_board.children.order("position asc") @board_count = @board.count +=end @curr_page = '设置' respond_to do |format| format.html { render :layout => 'base_edu_course' } diff --git a/app/views/courses/index.html.erb b/app/views/courses/index.html.erb index 80fa7f366..204ad93f8 100644 --- a/app/views/courses/index.html.erb +++ b/app/views/courses/index.html.erb @@ -49,13 +49,13 @@