annotate .svn/pristine/d2/d290eee74cbe20f80a2e1db7f27a9b1e012b2872.svn-base @ 1296:038ba2d95de8 redmine-2.2

Fix redmine-2.2 branch update (add missing svn files)
author Chris Cannam
date Fri, 14 Jun 2013 09:05:06 +0100
parents
children
rev   line source
Chris@1296 1 <h2><%= l(:label_search) %></h2>
Chris@1296 2
Chris@1296 3 <div class="box">
Chris@1296 4 <%= form_tag({}, :method => :get) do %>
Chris@1296 5 <%= label_tag "search-input", l(:description_search), :class => "hidden-for-sighted" %>
Chris@1296 6 <p><%= text_field_tag 'q', @question, :size => 60, :id => 'search-input' %>
Chris@1296 7 <%= javascript_tag "$('#search-input').focus()" %>
Chris@1296 8 <%= project_select_tag %>
Chris@1296 9 <%= hidden_field_tag 'all_words', '', :id => nil %>
Chris@1296 10 <label><%= check_box_tag 'all_words', 1, @all_words %> <%= l(:label_all_words) %></label>
Chris@1296 11 <%= hidden_field_tag 'titles_only', '', :id => nil %>
Chris@1296 12 <label><%= check_box_tag 'titles_only', 1, @titles_only %> <%= l(:label_search_titles_only) %></label>
Chris@1296 13 </p>
Chris@1296 14 <p>
Chris@1296 15 <% @object_types.each do |t| %>
Chris@1296 16 <label><%= check_box_tag t, 1, @scope.include?(t) %> <%= type_label(t) %></label>
Chris@1296 17 <% end %>
Chris@1296 18 </p>
Chris@1296 19
Chris@1296 20 <p><%= submit_tag l(:button_submit), :name => 'submit' %></p>
Chris@1296 21 <% end %>
Chris@1296 22 </div>
Chris@1296 23
Chris@1296 24 <% if @results %>
Chris@1296 25 <div id="search-results-counts">
Chris@1296 26 <%= render_results_by_type(@results_by_type) unless @scope.size == 1 %>
Chris@1296 27 </div>
Chris@1296 28
Chris@1296 29 <h3><%= l(:label_result_plural) %> (<%= @results_by_type.values.sum %>)</h3>
Chris@1296 30 <dl id="search-results">
Chris@1296 31 <% @results.each do |e| %>
Chris@1296 32 <dt class="<%= e.event_type %>"><%= content_tag('span', h(e.project), :class => 'project') unless @project == e.project %> <%= link_to highlight_tokens(truncate(e.event_title, :length => 255), @tokens), e.event_url %></dt>
Chris@1296 33 <dd><span class="description"><%= highlight_tokens(e.event_description, @tokens) %></span>
Chris@1296 34 <span class="author"><%= format_time(e.event_datetime) %></span></dd>
Chris@1296 35 <% end %>
Chris@1296 36 </dl>
Chris@1296 37 <% end %>
Chris@1296 38
Chris@1296 39 <p><center>
Chris@1296 40 <% if @pagination_previous_date %>
Chris@1296 41 <%= link_to_content_update("\xc2\xab " + l(:label_previous),
Chris@1296 42 params.merge(:previous => 1,
Chris@1296 43 :offset => @pagination_previous_date.strftime("%Y%m%d%H%M%S"))) %>&nbsp;
Chris@1296 44 <% end %>
Chris@1296 45 <% if @pagination_next_date %>
Chris@1296 46 <%= link_to_content_update(l(:label_next) + " \xc2\xbb",
Chris@1296 47 params.merge(:previous => nil,
Chris@1296 48 :offset => @pagination_next_date.strftime("%Y%m%d%H%M%S"))) %>
Chris@1296 49 <% end %>
Chris@1296 50 </center></p>
Chris@1296 51
Chris@1296 52 <% html_title(l(:label_search)) -%>