<%= t('.search') %>
<%= form_tag "/search", :method => :get do %>
<%= text_field_tag "q", @search.q, { :size => 40 }.
merge(@search.q.present? ? {} : { :autofocus => "autofocus" }) %>
<%= t('.include') %>
<%= radio_button_tag "what", "all", @search.what == "all" %>
<%= t('.all') %>
<%= radio_button_tag "what", "stories", @search.what == "stories" %>
<%= t('.stories') %>
<%= radio_button_tag "what", "comments", @search.what == "comments" %>
<%= t('.comments') %>
<%= t('.orderby') %>
<%= radio_button_tag "order", "relevance", @search.order == "relevance" %>
<%= t('.relevance') %>
<%= radio_button_tag "order", "newest", @search.order == "newest" %>
<%= t('.newest') %>
<%= radio_button_tag "order", "points", @search.order == "points" %>
<%= t('.points') %>
<% end %>
<% if @search.total_results > -1 %>
<%= t '.searchresults', :searchnumber => "#{@search.total_results}", :plural => "#{@search.total_results == 1 ? "" : t('.searchplural')}", :query => "#{@search.q}" %>