<%= link_to t('search_history.all_history'), search_histories_path -%>
<%- else -%><%= link_to t('search_history.failed_search'), search_histories_path(mode: 'not_found') -%>
<%- end -%> <% end %><%= t('activerecord.attributes.search_history.query') -%> | <%= t('activerecord.attributes.search_history.number_of_records') -%> | <%- unless params[:mode] == 'not_found' -%><%= t('activerecord.attributes.search_history.start_record') -%> | <%- end -%><%= t('search_history.searched_at') -%> | ||
---|---|---|---|---|---|
<%= link_to h(search_history.query), manifestations_path(:query => search_history.query) -%> | <%= search_history.number_of_records -%> | <%- unless params[:mode] == 'not_found' -%><%= search_history.start_record -%> | <%- end -%><%= l(search_history.created_at) -%> | <%- if policy(search_history).show? -%> <%= link_to t('page.show'), search_history -%> <% end %> | <%- if policy(search_history).destroy? -%> <%= link_to t('page.destroy'), search_history, data: {confirm: t('page.are_you_sure')}, method: :delete -%> <%- end -%> |