Sha256: decb7378e7fd3a18d4f56de3bd35db1495fa96695486fc3d3e77949eed969d59

Contents?: true

Size: 1.1 KB

Versions: 32

Compression:

Stored size: 1.1 KB

Contents

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

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

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

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

  <h3 class='section-heading'><%= t('blacklight.saved_searches.list_title') %></h3>
  <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'), blacklight.forget_search_path(search.id), :class => 'btn btn-danger' %></td>
    </tr>
  <%- end -%>
  </table>

<%- end -%>

</div>

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
blacklight-6.25.0 app/views/saved_searches/index.html.erb
blacklight-6.24.0 app/views/saved_searches/index.html.erb
blacklight-6.23.0 app/views/saved_searches/index.html.erb
blacklight-6.22.0 app/views/saved_searches/index.html.erb
blacklight-6.21.0 app/views/saved_searches/index.html.erb
blacklight-6.20.0 app/views/saved_searches/index.html.erb
blacklight-6.19.2 app/views/saved_searches/index.html.erb
blacklight-6.19.1 app/views/saved_searches/index.html.erb
blacklight-6.19.0 app/views/saved_searches/index.html.erb
blacklight-6.18.0 app/views/saved_searches/index.html.erb
blacklight-6.17.0 app/views/saved_searches/index.html.erb
blacklight-6.16.0 app/views/saved_searches/index.html.erb
blacklight-6.15.0 app/views/saved_searches/index.html.erb
blacklight-6.14.1 app/views/saved_searches/index.html.erb
blacklight-6.14.0 app/views/saved_searches/index.html.erb
blacklight-6.13.0 app/views/saved_searches/index.html.erb
blacklight-6.12.0 app/views/saved_searches/index.html.erb
blacklight-6.11.2 app/views/saved_searches/index.html.erb
blacklight-6.11.1 app/views/saved_searches/index.html.erb
blacklight-6.11.0 app/views/saved_searches/index.html.erb