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;