Sha256: 19bcff162499152b3dcaa8846bcbde0f468d590adb157738923cd9c5689b0534

Contents?: true

Size: 1.05 KB

Versions: 13

Compression:

Stored size: 1.05 KB

Contents

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

<div id="content" class="col-md-9">

<h1 class='page-heading'><%= t('blacklight.saved_searches.title') %></h1>

<%- if current_or_guest_user.blank? -%>
  
  <h2 class='section-heading'><%= t('blacklight.saved_searches.need_login') %></h2>
  
<%- elsif @searches.blank? -%>
  
  <h2 class='section-heading'><%= 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 class='section-heading'><%= t('blacklight.saved_searches.list_title') %></h2>

  <table class="table table-striped">
  <%- @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 -%>

</div>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
blacklight-5.19.2 app/views/saved_searches/index.html.erb
blacklight-5.19.1 app/views/saved_searches/index.html.erb
blacklight-5.19.0 app/views/saved_searches/index.html.erb
blacklight-5.18.0 app/views/saved_searches/index.html.erb
blacklight-5.17.2 app/views/saved_searches/index.html.erb
blacklight-5.17.1 app/views/saved_searches/index.html.erb
blacklight-5.17.0 app/views/saved_searches/index.html.erb
blacklight-5.16.4 app/views/saved_searches/index.html.erb
blacklight-5.16.3 app/views/saved_searches/index.html.erb
blacklight-5.16.2 app/views/saved_searches/index.html.erb
blacklight-5.16.1 app/views/saved_searches/index.html.erb
blacklight-5.16.0 app/views/saved_searches/index.html.erb
blacklight-5.15.0 app/views/saved_searches/index.html.erb