Sha256: 09cc68aadc5b6b60a6805263c38d008100b6b45028e71dba77134eeccf2cfaa1

Contents?: true

Size: 721 Bytes

Versions: 2

Compression:

Stored size: 721 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">
      <%= render(partial: 'alchemy/search/result', collection: search_results) %>
    </ul>
  <% end %>
</div>

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
alchemy-pg_search-6.1.0 app/views/alchemy/search/_results.html.erb
alchemy-pg_search-6.0.0 app/views/alchemy/search/_results.html.erb