%= provide :content_class, 'no-body' %>
<%=h cat.name %> | Topics | Posts | Last Post | ||
---|---|---|---|---|---|
<%= namelink(forum) %><%= forum.description %> |
<% if forum.can_update? cuser %> <%= link_to action: "up", id: forum do %> <% icon 'arrow-up' %> <% end %> <%= link_to action: "down", id: forum do %> <% icon 'arrow-down' %> <% end %> <% end %> | <%= forum.topics.count %> | <%= forum.posts.count %> |
<% if forum.posts.last %>
<%= link_to lastpost(forum.posts.last.topic) do %>
<%=h forum.posts.last.user %> <%= shortdate(forum.posts.last.created_at) %> <% end %> <% end %> |
We have total of <%= Post.count %> posts, <%= Topic.count %> topics, and <%= User.count %> users.
Our newest member is <%= namelink User.last %> and most active member is <%= namelink User.posts_stats.first %>.
<%= link_to 'New Forum', new_forum_path, class: 'button' %>
<% end %>