<% @categories.each do |c| %>

<%= c.name %>

<% if c.body.present? %>
<%= c.body %>
<% end %>
<% c.forums.each do |f| %> <% end %>
<%= t('.forums') %> <%= t('.topics') %> <%= t('.posts') %> <%= t('.last_post') %>
<% if f.recent_activity?(authenticated_user) %> <%= image_tag('/simple_forum_engine/images/forumNewPosts.gif', :alt => t('simple_forum.new_posts_present'), :title => t('simple_forum.new_posts_present')) %> <% else %> <%= image_tag('/simple_forum_engine/images/forumNoNewPosts.gif', :alt => t('simple_forum.new_posts_absent'), :title => t('simple_forum.new_posts_absent')) %> <% end %> <%= link_to f.name, simple_forum_forum_path(f) %>
<%= f.body %>
( <%= t('.moderated_by') %>: <%= f.moderators.map { |m| m.name }.join(', ').html_safe %> )
<%= number_with_delimiter f.topics.size %> <%= number_with_delimiter f.posts.size %> <% if f.recent_post %> <%= content_tag :span, :title => l(f.recent_post.created_at) do %> <%= link_to "#{time_ago_in_words(f.recent_post.created_at)} #{t('simple_forum.ago', :default => 'ago')}", simple_forum_forum_topic_path(f, f.recent_post.topic, :page => f.recent_post.topic.last_page, :anchor => "post-#{f.recent_post.id}") %> <% end %>
<%= t('simple_forum.by', :default => 'by') %> <%= f.recent_post.user.name %> <% end %>
<% end %>