Chris@909:

<%= l(:label_search) %>

Chris@909: Chris@909:
Chris@909: <% form_tag({}, :method => :get) do %> Chris@909: <%= label_tag "search-input", l(:description_search), :class => "hidden-for-sighted" %> Chris@909:

<%= text_field_tag 'q', @question, :size => 60, :id => 'search-input' %> Chris@909: <%= javascript_tag "Field.focus('search-input')" %> Chris@909: <%= project_select_tag %> Chris@909: <%= hidden_field_tag 'all_words', '', :id => nil %> Chris@909: Chris@909: <%= hidden_field_tag 'titles_only', '', :id => nil %> Chris@909: Chris@909:

Chris@909:

Chris@909: <% @object_types.each do |t| %> Chris@909: Chris@909: <% end %> Chris@909:

Chris@909: Chris@909:

<%= submit_tag l(:button_submit), :name => 'submit' %>

Chris@909: <% end %> Chris@909:
Chris@909: Chris@909: <% if @results %> Chris@909:
Chris@909: <%= render_results_by_type(@results_by_type) unless @scope.size == 1 %> Chris@909:
Chris@909: Chris@909:

<%= l(:label_result_plural) %> (<%= @results_by_type.values.sum %>)

Chris@909:
Chris@909: <% @results.each do |e| %> Chris@909:
<%= content_tag('span', h(e.project), :class => 'project') unless @project == e.project %> <%= link_to highlight_tokens(truncate(h(e.event_title), :length => 255), @tokens), e.event_url %>
Chris@909:
<%= highlight_tokens(h(e.event_description), @tokens) %> Chris@909: <%= format_time(e.event_datetime) %>
Chris@909: <% end %> Chris@909:
Chris@909: <% end %> Chris@909: Chris@909:

Chris@909: <% if @pagination_previous_date %> Chris@909: <%= link_to_content_update("\xc2\xab " + l(:label_previous), Chris@909: params.merge(:previous => 1, Chris@909: :offset => @pagination_previous_date.strftime("%Y%m%d%H%M%S"))) %>  Chris@909: <% end %> Chris@909: <% if @pagination_next_date %> Chris@909: <%= link_to_content_update(l(:label_next) + " \xc2\xbb", Chris@909: params.merge(:previous => nil, Chris@909: :offset => @pagination_next_date.strftime("%Y%m%d%H%M%S"))) %> Chris@909: <% end %> Chris@909:

Chris@909: Chris@909: <% html_title(l(:label_search)) -%>