From 5ce5aa2825d34e8b66371ab4d62bc800ec1c080b Mon Sep 17 00:00:00 2001 From: Linda <2294690300@qq.com> Date: Thu, 25 May 2017 15:16:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8F=AD=E7=BA=A7=E7=9A=84=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/courses_controller.rb | 4 ++-- app/views/courses/settings.html.erb | 10 ++++---- .../courses/settings/_boards_list.html.erb | 24 +++++++++---------- app/views/courses/settings/_moduels.html.erb | 23 +++++++++++------- .../_work_attachments_status.html.erb | 2 +- public/stylesheets/css/edu-class.css | 5 ++-- 6 files changed, 36 insertions(+), 32 deletions(-) diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index c990db05b..4727ed614 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -845,7 +845,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,7 +860,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/settings.html.erb b/app/views/courses/settings.html.erb index 49f1a542e..c438a610d 100644 --- a/app/views/courses/settings.html.erb +++ b/app/views/courses/settings.html.erb @@ -16,10 +16,10 @@
- +- <%=board.name %> +
+ <%=board.name %> - + <% unless i == 0 %> - <%= link_to('上移', {:controller => 'boards', :action => 'update_boards_position', :id => board.id, :course_id => @course.id, :opr => 'up'},:remote => true, :method => 'post', :class => "sy_btn_blue mr5", :title => '上移') %> + <%= link_to('上移', {:controller => 'boards', :action => 'update_boards_position', :id => board.id, :course_id => @course.id, :opr => 'up'},:remote => true, :method => 'post', :class => "", :title => '上移') %> <% end %> - + <% if i < @board_count - 1 %> - <%= link_to('下移', {:controller => 'boards', :action => 'update_boards_position', :id => board.id, :course_id => @course.id, :opr => 'down'}, :remote => true, :method => 'post', :class => "sy_btn_blue mr5", :title => '下移') %> + <%= link_to('下移', {:controller => 'boards', :action => 'update_boards_position', :id => board.id, :course_id => @course.id, :opr => 'down'}, :remote => true, :method => 'post', :class => "", :title => '下移') %> <% end %> - - 编辑 - - - 删除 - + + 编辑 + + + 删除 +
<% end %>