Sha256: 93c0a95bd020966b5d841f71af244134996bc670d424b794aeb0605a88ab4d4f

Contents?: true

Size: 1.48 KB

Versions: 21

Compression:

Stored size: 1.48 KB

Contents

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

<div id="content" class="col-md-12">
<h2 class='page-heading'><%=t('blacklight.search_history.title')%></h2>
<%- if @searches.blank? -%>
  <h3 class='section-heading'><%=t('blacklight.search_history.no_history')%></h3>
<%- else -%>
    <%= link_to t('blacklight.search_history.clear.action_title'), blacklight.clear_search_history_path, :method => :delete, :data => { :confirm => t('blacklight.search_history.clear.action_confirm') }, :class => 'btn btn-danger pull-right' %>
  <h3 class='section-heading'><%=t('blacklight.search_history.recent')%></h3>
  <table class="table table-striped search_history">
    <%-  @searches.each_with_index do |search,index| -%>
    <%= content_tag :tr, :id => "document_#{index + 1}" do %>
      <td class="query"><%= link_to_previous_search(search_state.reset(search.query_params).to_hash) %></td>
      <%- if has_user_authentication_provider? -%>
        <td class="actions">
          <%- if current_or_guest_user && search.saved? -%>
            <%= button_to t('blacklight.search_history.forget'), blacklight.forget_search_path(search.id), :class => 'btn btn-default' %>
          <%- else -%>
            <%= button_to t('blacklight.search_history.save'), blacklight.save_search_path(search.id), :method => :put, :class => 'btn btn-default' %>
          <%- end -%>
        </td>
      <%- end -%>
    <% end #content_tag %>
  <%- end -%>
  </table>
<%- end -%>
</div>

Version data entries

21 entries across 21 versions & 1 rubygems

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