Sha256: ec7ca8d30691ed224b94ccf2616dfbe49538a8c8a697b6090475f036d5a4671d

Contents?: true

Size: 1.1 KB

Versions: 9

Compression:

Stored size: 1.1 KB

Contents

<h1><%=t('blacklight.search_history.title')%></h1>
<%- if @searches.blank? -%>
  <h2><%=t('blacklight.search_history.no_history')%></h2>
<%- else -%>
  <p>
  <%= link_to t('blacklight.search_history.clear.action_title'), clear_search_history_path, :method => :delete, :data => { :confirm => t('blacklight.search_history.clear.action_confirm') } %>
  </p>
  <h2><%=t('blacklight.search_history.recent')%></h2>
  <table class="zebra 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_user && search.saved? -%>
            <%= button_to t('blacklight.search_history.forget'), forget_search_path(search.id) %>
          <%- else -%>
            <%= button_to t('blacklight.search_history.save'), save_search_path(search.id), :method => :put %>
          <%- end -%>
        </td>
      <%- end -%>
    <% end #content_tag %>
  <%- end -%>
  </table>
<%- end -%>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
blacklight-3.8.2 app/views/search_history/index.html.erb
blacklight-3.8.1 app/views/search_history/index.html.erb
blacklight-3.8.0 app/views/search_history/index.html.erb
blacklight-3.7.2 app/views/search_history/index.html.erb
blacklight-3.7.1 app/views/search_history/index.html.erb
blacklight-3.7.0 app/views/search_history/index.html.erb
blacklight-3.6.1.1 app/views/search_history/index.html.erb
blacklight-3.6.0 app/views/search_history/index.html.erb
blacklight-3.5.0 app/views/search_history/index.html.erb