Sha256: 82520c9827882919e8b38bcb4d62eb4b0fe1ed0cbd986c896f18202f4fd39bd6

Contents?: true

Size: 1010 Bytes

Versions: 1

Compression:

Stored size: 1010 Bytes

Contents

<% @page_title = t('blacklight.search_history.page_title', :application_name => application_name) %>

<div id="content" class="col-md-12">
<h2 class='page-heading'><%= t('blacklight.search_history.title') %></h2>
<% if @searches.blank? %>
  <h3 class='section-heading'><%= t('blacklight.search_history.no_history') %></h3>
<% else %>
  <%= link_to t('blacklight.search_history.clear.action_title'),
              blacklight.clear_search_history_path,
              method: :delete,
              data: { confirm: t('blacklight.search_history.clear.action_confirm') },
              class: 'btn btn-danger float-md-right' %>
  <h3 class='section-heading'><%= t('blacklight.search_history.recent') %></h3>
  <table class="table table-striped search-history">
    <% @searches.each_with_index do |search,index| %>
    <tr id="document_<%= index + 1 %>">
      <td class="query"><%= link_to_previous_search(search_state.reset(search.query_params).to_hash) %></td>
    </tr>
  <% end %>
  </table>
<% end %>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blacklight-7.0.0.rc1 app/views/search_history/index.html.erb