首页访问“待匿评作品”中如下作业报500

This commit is contained in:
cxt 2017-02-10 15:41:26 +08:00
parent 8078bc9c15
commit 888531f7c2
1 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@
</li>
<% end %>
<% course_board = @course.boards.where("parent_id is NULL").first %>
<% unless show_nav?(course_board ? course_board.messages.count : 0) %>
<% unless show_nav?((course_board ? course_board.messages.count : 0) + course_board.children.count) %>
<li id="sy_02" class="sy_icons_boards">
<% count = course_board ? course_board.messages.count : 0 %>
<a href="<%=course_boards_path(@course) %>">讨论区<span><%=count %></span></a>
@ -130,7 +130,7 @@
</li>
<%# 工具栏展开 %>
<% if @course.homework_commons.count == 0 || @course.news.count == 0 || course_file_num == 0 || course_poll_count == 0 || @course.exercises.count == 0 ||
course_feedback_count == 0 || @course.exercises.count == 0 || (@course.boards.first ? @course.boards.first.topics.count : 0) == 0 || statistics_count == 0%>
course_feedback_count == 0 || @course.exercises.count == 0 || ((course_board ? course_board.messages.count : 0) + course_board.children.count) == 0%>
<li id="expand_tools_expand" class="sy_icons_more"><a href="javascript:void(0)"> 更多</a>
</li>
<ul class="sub-menu undis" id="navContentCourse">