From 41fcb10da7b70fe7f26bcbbeac18dd77124ee996 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Tue, 23 May 2017 22:27:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E6=A8=A1=E5=9D=97=E9=9A=90?= =?UTF-8?q?=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/courses_controller.rb | 2 ++ app/views/courses/index.html.erb | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) 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 @@