Sha256: 9fe3c7f744e9d708334ee0edaed4a8c3d07cabaa67e52b4390e4fddb3de6b5f6

Contents?: true

Size: 1023 Bytes

Versions: 38

Compression:

Stored size: 1023 Bytes

Contents

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

<div id="content" class="col-md-12">
<h1 class='page-heading'><%= t('blacklight.search_history.title') %></h1>
<% if @searches.blank? %>
  <h2 class='section-heading'><%= t('blacklight.search_history.no_history') %></h2>
<% 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 float-md-end' %>
  <h2 class='section-heading'><%= t('blacklight.search_history.recent') %></h2>
  <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

38 entries across 38 versions & 2 rubygems

Version Path
blacklight-7.26.0 app/views/search_history/index.html.erb
blacklight-7.25.3 app/views/search_history/index.html.erb
blacklight-7.25.2 app/views/search_history/index.html.erb
blacklight-7.25.1 app/views/search_history/index.html.erb
blacklight-7.25.0 app/views/search_history/index.html.erb
blacklight-7.24.0 app/views/search_history/index.html.erb
blacklight-7.23.0.1 app/views/search_history/index.html.erb
blacklight-7.23.0 app/views/search_history/index.html.erb
blacklight-7.22.2 app/views/search_history/index.html.erb
blacklight-7.22.1 app/views/search_history/index.html.erb
blacklight-7.22.0 app/views/search_history/index.html.erb
blacklight-7.21.2 app/views/search_history/index.html.erb
blacklight-7.21.1 app/views/search_history/index.html.erb
blacklight-7.21.0 app/views/search_history/index.html.erb
blacklight-7.20.1 app/views/search_history/index.html.erb
blacklight-7.20.0 app/views/search_history/index.html.erb
blacklight-7.19.2 app/views/search_history/index.html.erb
blacklight-7.19.1 app/views/search_history/index.html.erb