<% content_for :right do %> <% unless @forum.description.blank? %>

Description

<%= @forum.description_html %> <% end %> <% if @forum.moderators.any? -%>

Moderators

<% else -%>

Unmoderated

This forum is currently unmoderated.

Please always be courteous.

<% end -%> <% end %> <% @page_title = @forum.name %>
<%= link_to "Forums", home_path %>

<%= h @forum.name %>

<%= feed_icon_tag @forum.name, formatted_forum_posts_path(@forum, :rss) %> <%= pluralize @forum.topics_count, 'topic' %>, <%= pluralize @forum.posts_count, 'post' %>

<% if @topic_pages.page_count > 1 -%>

<%= link_to 'New topic', new_topic_path(@forum) %> | Pages: <%= pagination_links @topic_pages, :window_size => 10 %>

<% end -%> <% for topic in @topics %> <% end %>
Topic Posts Views Last post
<% icon = "comment" color = "" if topic.locked? icon = "lock" post = ", this topic is locked." color = "darkgrey" end %> <% if recent_topic_activity(topic) %> <%= image_tag "clearbits/#{icon}.gif", :class => "icon green", :title => "Recent activity#{post}" %> <% else %> <%= image_tag "clearbits/#{icon}.gif", :class => "icon grey #{color}", :title => "No recent activity#{post}" %> <% end %> <%= "Sticky: " if topic.sticky? %> <%= link_to h(topic.title), topic_path(@forum, topic), :class => "entry-title", :rel => "bookmark" %> <%= "" if topic.sticky? %> <% if topic.paged? -%> <%= link_to 'last', topic_path(:forum_id => @forum, :id => topic, :page => topic.last_page) %> <% end -%> <%= topic.posts_count-1 %> <%= number_with_delimiter(topic.views) %> <%= time_ago_in_words(topic.replied_at) %> by <%= h(topic.replied_by_user.blank? ? 'Unknown' : topic.replied_by_user.display_name) %> <%= link_to 'view', topic_path(:forum_id => @forum, :id => topic, :page => topic.last_page, :anchor => "posts-#{topic.last_post_id}") %>

<%= link_to 'New topic', new_topic_path(@forum) %> <% if @topic_pages.page_count > 1 -%> | Pages: <%= pagination_links @topic_pages, :window_size => 10 %> <% end -%> <% if @topic_pages and @topic_pages.current.next %> | <%= link_to "Next page", { :page => @topic_pages.current.next }.merge(params.reject{|k,v| k=="page"}) %> <% end %>