% @page_title = search_posts_title -%>
<%= feed_icon_tag @page_title, search_posts_path(true) %> <%= pluralize(@post_pages.item_count,"post") %> found
<% if @post_pages.page_count > 1 -%>Pages: <%= pagination_links @post_pages, :window_size => 10, :params => params %>
<% end -%>
<% if post.created_at > Time.now.utc-24.hours%>
<%= time_ago_in_words(post.created_at).sub(/about /, '') %>
<% else %>
<%= post.created_at.strftime("%b %e, %Y")%>
<% end %>
<%= avatar_for @users[post.user_id] %>
<%= link_to h(@users[post.user_id].display_name), user_path(post.user_id), :class => (@users[post.user_id] == @users[@posts.first.user_id] ? "admin" : nil) %>
<%= pluralize @users[post.user_id].posts_count, 'post' %>
|
Topic: <%= link_to h(post.forum_name), forum_path(post.forum_id) %> / <%= link_to h(post.topic_title), topic_path(post.forum_id, post.topic_id) %> <%= post.body_html %> |
<%= link_to "Next page", { :page => @post_pages.current.next }.merge(params.reject{|k,v| k=="page"}) %>
<% end %> <% if @post_pages.page_count > 1 -%>Pages: <%= pagination_links @post_pages, :window_size => 10, :params => params %>
<% end -%>