首页访问“待匿评作品”中如下作业报500
This commit is contained in:
parent
8078bc9c15
commit
888531f7c2
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue