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

<%= t('blacklight.search_history.title') %>

<% if @searches.blank? %>

<%= t('blacklight.search_history.no_history') %>

<% 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' %>

<%= t('blacklight.search_history.recent') %>

<% @searches.each_with_index do |search,index| %> <% end %>
<%= link_to_previous_search(search_state.reset(search.query_params).to_hash) %>
<% end %>