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

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

<%= t('blacklight.saved_searches.intro') %> <%- if current_or_guest_user.blank? -%>

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

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

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

To save a search, click the "Save Search" link on the search results page.

<%- else -%>

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

<%- @searches.each do |search| -%> <%- end -%>
<%= link_to_previous_search(search.query_params) %> <%# button_to content_tag(:i, '', :class => 'icon-remove'), blacklight.forget_search_path(search.id) %> <%= link_to(content_tag(:span, '', :class => 'glyphicon glyphicon-remove'), blacklight.forget_search_path(search.id), :class => 'delete_search', :method => 'post', :title => t('blacklight.saved_searches.delete')) %>
<%- end -%>