mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
Swap out old recent topics method
This commit is contained in:
parent
c6589b9f1d
commit
9e03cc919f
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue