Sha256: 065f482b42daf36de1d7231c92859eecb1f14cd438c4311030b076316db58ea5

Contents?: true

Size: 1.25 KB

Versions: 35

Compression:

Stored size: 1.25 KB

Contents

<div id="content" class="col-md-12">
<h1><%=t('blacklight.search_history.title')%></h1>
<%- if @searches.blank? -%>
  <h2><%=t('blacklight.search_history.no_history')%></h2>
<%- else -%>
    <%= link_to t('blacklight.search_history.clear.action_title'), clear_search_history_path, :method => :delete, :data => { :confirm => t('blacklight.search_history.clear.action_confirm') }, :class => 'btn btn-danger pull-right' %>
  <h3><%=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'), forget_search_path(search.id), :class => 'btn btn-default' %>
          <%- else -%>
            <%= button_to t('blacklight.search_history.save'), save_search_path(search.id), :method => :put, :class => 'btn btn-default' %>
          <%- end -%>
        </td>
      <%- end -%>
    <% end #content_tag %>
  <%- end -%>
  </table>
<%- end -%>
</div>

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
blacklight-5.10.3 app/views/search_history/index.html.erb
blacklight-5.9.4 app/views/search_history/index.html.erb
blacklight-5.10.2 app/views/search_history/index.html.erb
blacklight-5.10.1 app/views/search_history/index.html.erb
blacklight-5.10.0 app/views/search_history/index.html.erb
blacklight-5.9.3 app/views/search_history/index.html.erb
blacklight-5.9.2 app/views/search_history/index.html.erb
blacklight-5.9.1 app/views/search_history/index.html.erb
blacklight-5.9.0 app/views/search_history/index.html.erb
blacklight-5.8.2 app/views/search_history/index.html.erb
blacklight-5.8.1 app/views/search_history/index.html.erb
blacklight-5.8.0 app/views/search_history/index.html.erb
blacklight-5.7.2 app/views/search_history/index.html.erb
blacklight-5.5.4 app/views/search_history/index.html.erb
blacklight-5.7.1 app/views/search_history/index.html.erb
blacklight-5.7.0 app/views/search_history/index.html.erb
blacklight-5.6.0 app/views/search_history/index.html.erb
blacklight-5.5.3 app/views/search_history/index.html.erb
blacklight-5.5.2 app/views/search_history/index.html.erb
blacklight-5.5.1 app/views/search_history/index.html.erb