1 <% content_for :right do %>
3 <% unless @forum.description.blank? %>
4 <%= @forum.description_html %>
8 <h5 style="margin-bottom:1.0em;"><%= 'Moderators'[:moderators] %></h5>
10 <% if @forum.moderators.any? -%>
11 <ul class="flat" style="margin-top:1em;">
12 <% @forum.moderators.each do |user| -%>
13 <li><%= link_to user.display_name, user_path(user) %></li>
17 <p><%= 'This forum is currently unmoderated.'[:forum_is_unmoderated] %></p>
18 <p><%= 'Please always be courteous.'[:please_be_courteous] %></p>
23 <% @page_title = @forum.name %>
26 <%= link_to 'Forums'[:forums_title], home_path %> <span class="arrow">→</span>
28 <h1 style="margin-top:0.5em">
33 <%= feed_icon_tag @forum.name, formatted_forum_posts_path(@forum, :rss) %>
34 <%= '{count} topic(s)'[(count=@forum.topics.size)==1 ? :topic_count : :topics_count, number_with_delimiter(count)] %>,
35 <%= '{count} post(s)'[(count=@forum.posts.size)==1 ? :post_count : :posts_count, number_with_delimiter(count)] %>
38 <% if @topics.page_count > 1 -%>
40 <p style="float:right; margin-top:0;"><%= link_to 'New topic'[], new_topic_path(@forum), :class => "utility" %></p>
42 <%= pagination @topics %>
45 <table border="0" cellspacing="0" cellpadding="0" class="wide topics">
47 <th class="la" colspan="2"><%= 'Topic'[:topic_title] %></th>
48 <th width="1%"><%= 'Posts'[:posts_title] %></th>
49 <th width="1%"><%= 'Views'[:views_title] %></th>
50 <th class="la"><%= 'Last post'[:last_post] %></th>
52 <% for topic in @topics %>
54 <td style="padding:5px; width:16px;" class="c1">
60 post = ", this topic is locked."[:comma_locked_topic]
64 <% if recent_topic_activity(topic) %>
65 <%= image_tag "clearbits/#{icon}.gif", :class => "icon green", :title => "Recent activity"[]+"#{post}" %>
67 <%= image_tag "clearbits/#{icon}.gif", :class => "icon grey #{color}", :title => "No recent activity"[]+"#{post}" %>
71 <%= "Sticky"[:sticky_title]+": <strong>" if topic.sticky? %>
72 <%= topic_title_link (topic), :class => "entry-title", :rel => "bookmark" %>
73 <%#= link_to h(topic.title), topic_path(@forum, topic), :class => "entry-title", :rel => "bookmark" %>
74 <%= "</strong>" if topic.sticky? %>
75 <% if topic.paged? -%>
76 <small><%= link_to 'last'[], topic_path(:forum_id => @forum, :id => topic, :page => topic.last_page) %></small>
79 <td class="ca inv stat"><%= topic.posts.size %></td>
80 <td class="ca inv stat"><%= number_with_delimiter(topic.views) %></td>
82 <abbr class="updated" title="<%= topic.replied_at.xmlschema %>"><%= time_ago_in_words(topic.replied_at) %></abbr>
83 <%= 'by {user}'[:by_user, "<span class=\"author\"><strong class=\"fn\">#{h(topic.replied_by_user.display_name)}</strong></span>"] %>
84 <span><%= link_to 'view'[], topic_path(:forum_id => @forum, :id => topic, :page => topic.last_page, :anchor => "posts-#{topic.last_post_id}") %></span>
90 <%= next_page @topics %>
91 <%= pagination @topics %>
94 <p><%= link_to 'New topic'[:new_topic], new_topic_path(@forum), :class => "utility" %></p>