%= provide :content_class, 'no-body' %>
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 %> |