% content_for :right do %> <% unless @forum.description.blank? %>
This forum is currently unmoderated.
Please always be courteous.
<% end -%> <% end %> <% @page_title = @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 -%>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 <%= 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 %>