|
|
|
@ -68,7 +68,7 @@
|
|
|
|
|
<li id="sy_02" class="sy_icons_boards">
|
|
|
|
|
<% count = @course.boards.first ? (@course.boards.first.topics.count + Message.where("board_id =? and parent_id is not ?", @course.boards.first.id, nil).count) : 0 %>
|
|
|
|
|
<a href="<%=course_boards_path(@course) %>">讨论区<span><%=count %></span></a>
|
|
|
|
|
<%= link_to( "",course_boards_path(@course, :flag => true, :is_new => 1), :class => 'sy_class_add', :title =>"#{l(:label_message_new)}") %>
|
|
|
|
|
<%= link_to( "",course_boards_path(@course, :flag => true, :is_new => 1), :class => 'sy_class_add', :title =>"#{l(:label_message_new)}") if is_teacher %>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% unless show_nav?(@course.homework_commons.count) %>
|
|
|
|
@ -94,7 +94,7 @@
|
|
|
|
|
<% unless show_nav?(course_feedback_count) %>
|
|
|
|
|
<li id="sy_06" class="sy_icons_feedback">
|
|
|
|
|
<a href="<%=course_feedback_path(@course) %>">留言<span id="course_jour_count"><%=course_feedback_count %></span></a>
|
|
|
|
|
<%= link_to "", course_feedback_path(@course), :class => 'sy_class_add', :title =>"#{l(:label_course_feedback)}"%>
|
|
|
|
|
<%= link_to( "", course_feedback_path(@course), :class => 'sy_class_add', :title =>"#{l(:label_course_feedback)}") if is_teacher %>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% unless show_nav?(course_poll_count) %>
|
|
|
|
@ -106,7 +106,7 @@
|
|
|
|
|
<% count = User.current.allowed_to?(:as_teacher,@course)? @course.exercises.count : @course.exercises.where("exercise_status <> 1").count %>
|
|
|
|
|
<% unless show_nav?(count) %>
|
|
|
|
|
<li id="sy_08" class="sy_icons_exercise">
|
|
|
|
|
<a href="<%=exercise_index_path(:course_id => @course.id) %>">在线测验<span><%=count %></span></a>
|
|
|
|
|
<a href="<%= User.current.logged? ? exercise_index_path(:course_id => @course.id) : signin_url_without_domain %>">在线测验<span><%=count %></span></a>
|
|
|
|
|
<%= link_to( "", new_exercise_path(:course_id => @course.id), :class => 'sy_class_add', :title =>"新建试卷") if is_teacher %>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|