1 <% @page_title = search_posts_title -%>
4 <% if params[:q].blank? -%>
7 <%= 'Searching for'[] %> '<%= h params[:q] %>'
11 <%= feed_icon_tag @page_title, search_posts_path(true) %>
12 <%= '{count} post(s) found'[(count=@posts.total_entries)==1 ? :post_count_found : :posts_count_found, number_with_delimiter(count)] %>
15 <%= pagination @posts %>
17 <table border="0" cellspacing="0" cellpadding="0" class="posts wide">
18 <% for post in @posts do %>
19 <% unless post == @posts.first %>
21 <td colspan="2"> </td>
24 <tr class="post hentry" id="<%= dom_id post %>">
25 <td class="author vcard">
27 <abbr class="updated" title="<%= post.created_at.xmlschema %>">
28 <% if post.created_at > Time.now.utc-24.hours%>
29 <%= time_ago_in_words(post.created_at).sub(/about /, '') %>
31 <%= post.created_at.strftime("%b %e, %Y"[:date_format])%>
36 <%= avatar_for @users[post.user_id] %>
37 <span class="fn"><%= link_to truncate(h(@users[post.user_id].display_name), 15), user_path(post.user_id) %></span>
38 <span class="posts"><%= '{count} posts'[(count=@users[post.user_id].posts.size)==1 ? :post_count : :posts_count, number_with_delimiter(count)] %></span>
40 <td class="body entry-content">
42 <%= "Topic"[:topic_title] %>: <%= link_to h(post.forum_name), forum_path(post.forum_id) %> /
43 <%= link_to h(post.topic_title), topic_path(post.forum_id, post.topic_id) %>
53 <%= next_page @posts %>
54 <%= pagination @posts %>