<% content_for :right do %> <% if admin? %>

Admin

<% end %> <% end %>

Forums

<%= feed_icon_tag "Recent Posts", formatted_all_posts_path(:format => 'rss') %> <%= number_with_delimiter(Topic.count) %> topics, <%= number_with_delimiter(Post.count) %> posts, <%= number_with_delimiter(User.count(:conditions => "posts_count>0")) %> voices

<% for forum in @forums do %> <% end %>
Forum Last Post
<% if recent_forum_activity(forum) %> <%= image_tag "clearbits/comment.gif", :class => "icon green", :title => "Recent activity" %> <% else %> <%= image_tag "clearbits/comment.gif", :class => "icon grey", :title => "No recent activity" %> <% end %> <%= link_to "Edit", edit_forum_path(forum), :class => "tiny", :rel => "directory", :style => "float:right" if admin? %> <%= link_to h(forum.name), forum_path(forum), :class => "title" %>
<%= number_with_delimiter(forum.topics_count) %> topics, <%= number_with_delimiter(forum.posts_count) %> posts
<%= forum.description_html %>
<% if forum.posts.last %> <%= time_ago_in_words(forum.posts.last.created_at) %>
by <%= h(forum.posts.last.user.display_name) %> (<%= link_to 'view', topic_path(:forum_id => forum, :id => forum.posts.last.topic_id, :page => forum.posts.last.topic.last_page, :anchor => forum.posts.last.dom_id) %>) <% end %>

<%= link_to "Recent main forum posts", all_posts_path %> | <%= link_to "Test and Aldershot posts", all_posts_path('tests_and_aldershot' => 'yes') %> | <%= link_to "Everything", all_posts_path('everything' => 'yes') %>

<% online_users = User.currently_online -%> <% unless online_users.empty? %>
<% unless online_users.empty? %> Users online: <%= online_users.map { |u| link_to "#{h u.display_name}", user_path(u) } * ", " %>
<% end %>
<% end %>