Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added option of friendly search result name

  • Loading branch information...
commit a20bc907c4d04f74933d6a02b5465b535fd7047e 1 parent 848772d
@markprovan markprovan authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 app/views/refinery/search/show.html.erb
View
6 app/views/refinery/search/show.html.erb
@@ -10,7 +10,11 @@
<% @results.each do |result| %>
<li>
<span class='result_type'>
- <%= result_type result %>
+ <% if result.class.method_defined?(:friendly_search_name) %>
+ <%= result.friendly_search_name %>
+ <% else %>
+ <%= result_type result %>
+ <% end %>
</span>
<%= link_to result_title(result).html_safe, result_url(result) %>
</li>
Please sign in to comment.
Something went wrong with that request. Please try again.