Swap out old recent topics method

This commit is contained in:
Chris Blanchard 2015-08-20 16:20:50 +01:00
parent c6589b9f1d
commit 9e03cc919f
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
<ol>
<% Topic.basic.recent.latest_page(page).each do |topic| %>
<% Topic.recent_topics.each do |topic| %>
<li class="bold">
<%= link_to (h topic), lastpost(topic) %>
</li>

View file

@ -4,7 +4,7 @@
<div class="widget-content-wrapper">
<div class="separator">Latest forum posts</div>
<ol>
<% Topic.basic.recent.latest_page(1).each do |topic| %>
<% Topic.recent_topics.each do |topic| %>
<li>
<%= link_to shorten(topic, 28), lastpost(topic) %>
</li>