修正讨论区帖子数量显示不正确问题

This commit is contained in:
z9hang 2015-03-24 17:21:41 +08:00
parent be46142b3c
commit 13245282d4
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@
</div>
<div class="subNav">
<%= link_to l(:label_course_board), course_boards_path(@course), :class => "f14 c_blue02" %>
<%= link_to "(#{@course.boards.count})", course_boards_path(@course), :class => "subnav_num c_orange" %>
<%= link_to "(#{@course.boards[0].topics.count})", course_boards_path(@course), :class => "subnav_num c_orange" %>
<%= link_to( "+#{l(:label_message_new)}", course_boards_path(@course), :class => 'subnav_green ml95 c_white') if is_teacher %>
</div>
<div class="subNav">