Sha256: 95961b04308cb47f15b7fb8ed0ce72d8158235fbb0079d6accefe1d480d32e9a
Contents?: true
Size: 1.42 KB
Versions: 13
Compression:
Stored size: 1.42 KB
Contents
<% @page_title = t('blacklight.search_history.page_title', :application_name => application_name) %> <div id="content" class="col-md-12"> <h1 class='page-heading'><%=t('blacklight.search_history.title')%></h1> <%- if @searches.blank? -%> <h2 class='section-heading'><%=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 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'), 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
13 entries across 13 versions & 1 rubygems