<%= provide :content_class, 'no-body' %>
<% @categories.each do |cat| %> <% forums = cuser ? cat.forums.available_to(cuser, Forumer::ACCESS_READ).ordered : cat.forums.public.ordered %> <% next if forums.length == 0 %>
<% forums.each do |forum| %> <% end %>
<%=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 %>
<% end %>

Statistics

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 %>.

<% if Forum.new.can_create? cuser %>

<%= link_to 'New Forum', new_forum_path, class: 'button' %>

<% end %>