%= erb :'partials/search' %>
Showing results for <%= params[:q] %>:
<% end %>created by <%= result[:creator] %> on <%= result[:created_at].strftime('%B %d, %Y') %> last post by <%= result[:last_post_creator] %> at <%= result[:last_post_created_at].strftime('%-I:%M %p EST') %> on <%= result[:last_post_created_at].strftime('%B %-d, %Y') %>
<% elsif params[:type] == "posts" %>In thread: <%= external_link( "http://board.vivalavinyl.com/thread/view/#{result[:remote_thread_id]}#post_#{result[:remote_id]}", result[:thread_title] ) %>
<%= result[:creator] %> posted this at <%= result[:created_at] %>
<%= truncate(result[:body]) %>
<% end %><%= error %>
<% end %>