Sha256: b210dc27c10506da39fbca0c97bd82672b0a524435fab90f9988559fb47fe574

Contents?: true

Size: 815 Bytes

Versions: 8

Compression:

Stored size: 815 Bytes

Contents

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

<%- if current_user.blank? -%>
  
  <h2><%= t('blacklight.saved_searches.need_login') %></h2>
  
<%- elsif @searches.blank? -%>
  
  <h2><%= t('blacklight.saved_searches.no_searches') %></h2>
  
<%- else -%>
  <p>
  <%= link_to t('blacklight.saved_searches.clear.action_title'), clear_saved_searches_path, :method => :delete, :data => { :confirm => t('blacklight.saved_searches.clear.action_confirm') } %>
  </p>

  <h2><%= t('blacklight.saved_searches.list_title') %></h2>
  <table class="zebra">
  <%- @searches.each do |search| -%>
    <tr>
      <td><%= link_to_previous_search(search.query_params) %></td>
      <td><%= button_to t('blacklight.saved_searches.delete'), forget_search_path(search.id) %></td>
    </tr>
  <%- end -%>
  </table>

<%- end -%>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
blacklight-3.8.2 app/views/saved_searches/index.html.erb
blacklight-3.8.1 app/views/saved_searches/index.html.erb
blacklight-3.8.0 app/views/saved_searches/index.html.erb
blacklight-3.7.2 app/views/saved_searches/index.html.erb
blacklight-3.7.1 app/views/saved_searches/index.html.erb
blacklight-3.7.0 app/views/saved_searches/index.html.erb
blacklight-3.6.1.1 app/views/saved_searches/index.html.erb
blacklight-3.6.0 app/views/saved_searches/index.html.erb