diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 8520dc0..4c74e33 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -312,9 +312,11 @@ module ApplicationHelper link_to name, :controller => 'search', :action => 'category_index', :category_path => category.path.split('/') end - def link_to_product(product) + def link_to_product(product, opts={}) return _('No product') unless product - link_to product.name, :controller => 'catalog', :action => 'show', :id => product, :profile => product.enterprise.identifier + link_to content_tag( 'span', product.name ), + { :controller => 'catalog', :action => 'show', :id => product, :profile => product.enterprise.identifier }, + opts end def partial_for_class(klass) diff --git a/app/views/search/_display_results.rhtml b/app/views/search/_display_results.rhtml index 2d7cec3..cbb86a6 100644 --- a/app/views/search/_display_results.rhtml +++ b/app/views/search/_display_results.rhtml @@ -1,14 +1,30 @@ +