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

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

<%- if current_or_guest_user.blank? -%>

<%= t('blacklight.saved_searches.need_login') %>

<%- elsif @searches.blank? -%>

<%= t('blacklight.saved_searches.no_searches') %>

<%- else -%>

<%= link_to t('blacklight.saved_searches.clear.action_title'), blacklight.clear_saved_searches_path, :method => :delete, :data => { :confirm => t('blacklight.saved_searches.clear.action_confirm') } %>

<%= t('blacklight.saved_searches.list_title') %>

<%- @searches.each do |search| -%> <%- end -%>
<%= link_to_previous_search(search.query_params) %> <%= button_to t('blacklight.saved_searches.delete'), blacklight.forget_search_path(search.id) %>
<%- end -%>