mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-11-15 09:21:25 +00:00
Swap out old recent topics method
This commit is contained in:
parent
551520dc73
commit
4318f4116e
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