Sha256: 9ab506bc8331f5219e7ee1045620009511a6d9454e58921e506d79937b05967c
Contents?: true
Size: 1.12 KB
Versions: 3
Compression:
Stored size: 1.12 KB
Contents
<% @searches.each do |search| %> <tr> <td class="type-col"> <%= link_to search.search_type, overview_searches_path(search_type: search.search_type), class: "type-link type-link-#{@search_types.index(search.search_type)}" %> </td> <td> <% name = Searchjoy.query_name ? Searchjoy.query_name.call(search) : search.query %> <% if Searchjoy.query_url %> <%= link_to name, Searchjoy.query_url.call(search), target: "_blank" %> <% else %> <%= name %> <% end %> </td> <td class="conversion-col"> <% if search.converted_at %> <strong>✓</strong> <% convertable = Searchjoy.multiple_conversions ? search.conversions.min_by(&:created_at)&.convertable : search.convertable %> <%= convertable ? (Searchjoy.conversion_name ? Searchjoy.conversion_name.call(convertable) : "#{convertable.model_name.name} #{convertable.id}") : "Converted" %> <% end %> </td> <td class="num width-20"> <%= time_ago_in_words search.created_at %> ago <div class="text-muted"><%= pluralize search.results_count, "result" %></div> </td> </tr> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
searchjoy-1.3.2 | app/views/searchjoy/searches/recent.html.erb |
searchjoy-1.3.1 | app/views/searchjoy/searches/recent.html.erb |
searchjoy-1.3.0 | app/views/searchjoy/searches/recent.html.erb |