app/views/searchjoy/searches/recent.html.erb in searchjoy-0.1.0 vs app/views/searchjoy/searches/recent.html.erb in searchjoy-0.2.0
- old
+ new
@@ -1,10 +1,11 @@
<% @searches.each do |search| %>
<tr>
<td style="width: 15%;">
<%= 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><%= search.query %></td>
+ <td><%= Searchjoy.query_name ? Searchjoy.query_name.call(search) : search.query %></td>
+
<td style="width: 35%; color: #5cb85c;">
<% if search.converted_at %>
<strong>✓</strong>
<%= search.convertable ? (Searchjoy.conversion_name ? Searchjoy.conversion_name.call(search.convertable) : "#{search.convertable_type} #{search.convertable_id}") : "Converted" %>
<% end %>