Sha256: 9a6eb2309e3590bd888f03cb0380497345d609fcf8d0e475386847cee49ed3c5

Contents?: true

Size: 862 Bytes

Versions: 7

Compression:

Stored size: 862 Bytes

Contents

<div class="search_results">
  <% if @search_results.blank? %>
    <h2 class="no_search_results">
      <%= raw Alchemy.t('search_result_page.no_results', query: h(params[:query])) %>
    </h2>
  <% else %>
    <h2 class="search_results_heading">
      <%= raw Alchemy.t("search_result_page.result_heading", query: h(params[:query])) %>
      <%= Alchemy.t("search_result_page.result_count",
        count: @search_results.try(:total_count) || @search_results.size) %>
    </h2>
    <ul class="search_result_list">
      <% @search_results.each do |page| %>
        <%= render('alchemy/search/result',
          elements: page.element_search_results(params[:query]),
          options: options,
          page: page
        ) %>
      <% end %>
    </ul>
  <% end %>
</div>

<% if @search_results.try(:total_pages) %>
  <%= paginate @search_results %>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
alchemy-pg_search-3.0.0 app/views/alchemy/search/_results.html.erb
alchemy-pg_search-2.4.0 app/views/alchemy/search/_results.html.erb
alchemy-pg_search-2.3.0 app/views/alchemy/search/_results.html.erb
alchemy-pg_search-2.2.0 app/views/alchemy/search/_results.html.erb
alchemy-pg_search-2.1.0 app/views/alchemy/search/_results.html.erb
alchemy-pg_search-2.0.0 app/views/alchemy/search/_results.html.erb
alchemy-pg_search-1.2.0 app/views/alchemy/search/_results.html.erb