Fixed topic & post counts in category#index

This commit is contained in:
2013-01-22 10:31:36 -05:00
parent 1d439f2c45
commit 652a7c2120

View File

@@ -26,8 +26,8 @@
<%= link_to forum.title, forum_path(forum) %><br /> <%= link_to forum.title, forum_path(forum) %><br />
<span class="smaller"><%= forum.description %></span><br /> <span class="smaller"><%= forum.description %></span><br />
</td> </td>
<td class="counts smaller"><%= forum.topics.size %></td> <td class="counts smaller"><%= forum.topics.count %></td>
<td class="counts smaller"><%= forum.posts.size - forum.topics.size %></td> <td class="counts smaller"><%= forum.posts.count %></td>
<td class="last_post smaller"> <td class="last_post smaller">
<% if forum.posts.size > 0 %> <% if forum.posts.size > 0 %>
<%=l forum.posts.last.created_at %><br /> <%=l forum.posts.last.created_at %><br />