|
|
|
@ -110,10 +110,10 @@
|
|
|
|
|
<%= link_to( "", new_exercise_path(:course_id => @course.id), :class => 'sy_class_add', :title =>"新建试卷") if is_teacher %>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% group_count = 1 %>
|
|
|
|
|
<% unless show_nav?(group_count) %>
|
|
|
|
|
<% group_count = @course.course_groups.count %>
|
|
|
|
|
<% if !show_nav?(group_count) && ((User.current.logged? && @course.open_student == 1) || (User.current.member_of_course?(@course)) || User.current.admin?) %>
|
|
|
|
|
<li id="sy_09" class="sy_icons_group">
|
|
|
|
|
<a href="<%=course_member_path(@course, :role => 2) %>">分班<span></span></a>
|
|
|
|
|
<a href="<%=course_member_path(@course, :role => 2) %>">分班<span><%=group_count %></span></a>
|
|
|
|
|
<!--<a href="javascript:void(0);" class="sy_class_add"></a>-->
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|