Skip to content

Commit

Permalink
[view] Make view count for topic listing sum the count column
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Adams committed Jun 25, 2011
1 parent 936233d commit 0f5d21e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/views/forem/topics/_head.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h2><%= link_to t('forem.forum.forums'), forums_path %> &raquo; <%= link_to topic.forum.title, topic.forum %> &raquo; <%= topic.subject %></h2>
2 changes: 1 addition & 1 deletion app/views/forem/topics/_topic_listing.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
<%= link_to_latest_post(topic_listing.posts.last) -%>
</td>
<td class='posts-count'><%= topic_listing.posts.count %></td>
<td class='views-count'><%= topic_listing.views.count %></td>
<td class='views-count'><%= topic_listing.views.sum(:count) %></td>
</tr>

0 comments on commit 0f5d21e

Please sign in to comment.