mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-11-15 09:21:25 +00:00
24 lines
No EOL
617 B
Text
24 lines
No EOL
617 B
Text
<div class="widget posts">
|
|
<h4><%= t('widget.posts') %></h4>
|
|
|
|
<div class="widget-content-wrapper">
|
|
<div class="separator">Latest forum posts</div>
|
|
<ol>
|
|
<% Topic.basic.recent.latest_page(1).each do |topic| %>
|
|
<li>
|
|
<%= link_to shorten(topic, 28), lastpost(topic) %>
|
|
</li>
|
|
<% end %>
|
|
</ol>
|
|
|
|
<div class="separator">Latest comments</div>
|
|
<ol>
|
|
<% Comment.recent.filtered.each do |comment| %>
|
|
<li>
|
|
<%= namelink comment.commentable, 15 %>
|
|
by <%= namelink comment.user, 10 %>
|
|
</li>
|
|
<% end %>
|
|
</ol>
|
|
</div>
|
|
</div> |