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 %> + + + + + + <%= h html_title %> + + + + <%= csrf_meta_tag %> + <%= favicon %> + <%= javascript_heads %> + <%= heads_for_theme %> + <%= call_hook :view_layouts_base_html_head %> + <%= stylesheet_link_tag 'public', 'leftside', 'courses'%> + <%= javascript_include_tag "course","header" %> + + <%= yield :header_tags -%> + + + +
+ <%= render :partial => 'layouts/new_header' %> +
+ +
+
+

配置课程

+
+
+
    +
    +
  • + 上传图片 + 上传图片 +
    +
  • +
  • + + +
  • +
    +
  • + + +
  • +
    +
  • + + + +
  • +
    +
  • + + +
    + 学生或其他成员申请加入课程时候需要使用该口令,该口令可以由老师在课堂上公布。 +
  • +
  • + + +
    +
  • +
  • + + + (打钩为公开,不打钩则不公开,若不公开,仅课程成员可见该课程。) +
    +
  • +
  • + + + (打钩为"学生列表公开",不打钩为不公开,若不公开,则课程外部人员看不到学生列表) +
    +
  • +
  • + 提交取消 +
    +
  • +
    +
+
+
+
+ +
+ + <%= render :partial => 'layouts/new_footer' %> +
+
+<%= render :partial => 'layouts/new_feedback' %> + + +<%= call_hook :view_layouts_base_body_bottom %> + + + \ No newline at end of file