From 724ae058db3c467405bce96598b3cd6536338b2f Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 9 Sep 2016 15:49:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8F=AD=E7=BA=A7=E5=B7=A6=E4=BE=A7=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E2=80=9C=E5=88=86=E7=8F=AD=E2=80=9D=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/courses/_tool_expand.html.erb | 6 +++++- public/stylesheets/syllabus.css | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/views/courses/_tool_expand.html.erb b/app/views/courses/_tool_expand.html.erb index 72ae83b92..8f9530e35 100644 --- a/app/views/courses/_tool_expand.html.erb +++ b/app/views/courses/_tool_expand.html.erb @@ -45,9 +45,13 @@ <%= link_to( "", new_exercise_path(:course_id => @course.id), :class => 'sy_class_add', :title =>"新建试卷") if is_teacher %> <% end %> +<% if (User.current.logged? && @course.open_student == 1) || (User.current.member_of_course?(@course)) || User.current.admin? %> +
  • + <%=link_to "分班", course_member_path(@course, :role => 2) %> +
  • +<% end %> <% if show_nav?(0) %>
  • 统计 -
  • <% end %> \ No newline at end of file diff --git a/public/stylesheets/syllabus.css b/public/stylesheets/syllabus.css index cf504a10d..78b9de21a 100644 --- a/public/stylesheets/syllabus.css +++ b/public/stylesheets/syllabus.css @@ -408,6 +408,10 @@ a:hover.sy_btn_orange{ color: #ee4a1f; background: #fff; } +.sub-menu > li:hover > a{ + color: #ee4a1f; + background: #fff; +} .accordion > li:target > a, .accordion > li > a.active { color: #ee4a1f;