Sha256: e6559c4ab76bcd4a30b7937f1ea6b1b08fea242e518d3d33e4790b11e2508a3d

Contents?: true

Size: 1.45 KB

Versions: 27

Compression:

Stored size: 1.45 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.query_params) %></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

27 entries across 27 versions & 1 rubygems

Version Path
blacklight-6.10.0 app/views/search_history/index.html.erb
blacklight-6.9.0 app/views/search_history/index.html.erb
blacklight-6.8.0 app/views/search_history/index.html.erb
blacklight-6.7.3 app/views/search_history/index.html.erb
blacklight-6.7.2 app/views/search_history/index.html.erb
blacklight-6.7.1 app/views/search_history/index.html.erb
blacklight-6.7.0 app/views/search_history/index.html.erb
blacklight-6.6.2 app/views/search_history/index.html.erb
blacklight-6.6.1 app/views/search_history/index.html.erb
blacklight-6.6.0 app/views/search_history/index.html.erb
blacklight-6.5.0 app/views/search_history/index.html.erb
blacklight-6.4.2 app/views/search_history/index.html.erb
blacklight-6.4.1 app/views/search_history/index.html.erb
blacklight-6.4.0 app/views/search_history/index.html.erb
blacklight-6.3.3 app/views/search_history/index.html.erb
blacklight-6.3.1 app/views/search_history/index.html.erb
blacklight-6.3.0 app/views/search_history/index.html.erb
blacklight-6.2.0 app/views/search_history/index.html.erb
blacklight-6.1.0 app/views/search_history/index.html.erb
blacklight-6.0.2 app/views/search_history/index.html.erb