<%= provide :content_class, 'no-body' %>
<%= render partial: 'controls', locals: { forum: @forum } %>

<%=h @forum.title %>

<%= will_paginate @topics %> <% @topics.each do |topic| %> <% end %>
Topic Author Replies Views Last Post
<% if topic.state == Topic::STATE_STICKY %> Sticky: <% elsif topic.lock %> Locked: <% end %> <%= link_to (h topic), topic, class: ((cuser and !topic.read_by? cuser) ? "unread" : "read") + ((topic.state == Topic::STATE_STICKY) ? " sticky" : "") %>
<% if topic.posts.count > Topic::POSTS_PAGE %> Page: <% (1..((topic.posts.count/Topic::POSTS_PAGE).ceil + 1)).to_a.each do |page| %> <%= ", " unless page == 1 %> <%= link_to page, topic_url(topic, page: page) %> <% end %> <% end %>
<%= namelink(topic.user) %> <%=h topic.cached_posts_count %> <%=h topic.cached_view_count %> <%= link_to lastpost(topic) do %> <%=h topic.latest.user %>
<%= shortdate(topic.latest.created_at) %> <% end %>
<%= will_paginate @topics %> <%= render partial: 'controls', locals: { forum: @forum } %>