Sha256: 4d3a3d2e118b3fd37e624e1e81c5d2ae42d3a2ae0da32cd06f8495d29e77e24c

Contents?: true

Size: 1.18 KB

Versions: 21

Compression:

Stored size: 1.18 KB

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, # for rails-ujs
              data: {
                confirm: t('blacklight.search_history.clear.action_confirm'), # for rails-ujs
                turbo_confirm: t('blacklight.search_history.clear.action_confirm'),
                turbo_method: :delete
              },
              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

21 entries across 21 versions & 2 rubygems

Version Path
blacklight-8.6.1 app/views/search_history/index.html.erb
blacklight-8.6.0 app/views/search_history/index.html.erb
blacklight-8.5.1 app/views/search_history/index.html.erb
blacklight-8.5.0 app/views/search_history/index.html.erb
blacklight-8.4.0 app/views/search_history/index.html.erb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/app/views/search_history/index.html.erb
blacklight-8.3.0 app/views/search_history/index.html.erb
blacklight-8.2.2 app/views/search_history/index.html.erb
blacklight-8.2.1 app/views/search_history/index.html.erb
blacklight-8.2.0 app/views/search_history/index.html.erb
blacklight-8.1.0 app/views/search_history/index.html.erb
blacklight-8.0.1 app/views/search_history/index.html.erb
blacklight-8.0.0 app/views/search_history/index.html.erb
blacklight-8.0.0.beta8 app/views/search_history/index.html.erb
blacklight-8.0.0.beta7 app/views/search_history/index.html.erb
blacklight-8.0.0.beta6 app/views/search_history/index.html.erb
blacklight-8.0.0.beta5 app/views/search_history/index.html.erb
blacklight-8.0.0.beta4 app/views/search_history/index.html.erb
blacklight-8.0.0.beta3 app/views/search_history/index.html.erb
blacklight-8.0.0.beta2 app/views/search_history/index.html.erb