From 53eef164c9d9f80d75087aa01c4f4275ebfec10a Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Thu, 26 Mar 2015 15:12:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BA=E8=AF=BE=E7=A8=8B=E6=97=B6la?= =?UTF-8?q?yout=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/courses_controller.rb | 2 +- app/views/layouts/new_base.html.erb | 115 ++++++++++++++++++++++++++ 2 files changed, 116 insertions(+), 1 deletion(-) create mode 100644 app/views/layouts/new_base.html.erb diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index 0b3f88d68..595ed9476 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -500,7 +500,7 @@ class CoursesController < ApplicationController @course = Course.new @course.safe_attributes = params[:course] month = Time.now.month - render :layout => 'base' + render :layout => 'new_base' end def desc_sort_course_by_avtivity(activity_count, courses) diff --git a/app/views/layouts/new_base.html.erb b/app/views/layouts/new_base.html.erb new file mode 100644 index 000000000..378e20ab0 --- /dev/null +++ b/app/views/layouts/new_base.html.erb @@ -0,0 +1,115 @@ +<% course_model %> + + +
+ +