diff --git a/app/views/search/_product.rhtml b/app/views/search/_product.rhtml index ba40637..9bca8eb 100644 --- a/app/views/search/_product.rhtml +++ b/app/views/search/_product.rhtml @@ -4,11 +4,12 @@
<%= icon('product') %>
- - <%= link_to( hit.name, :profile => hit.enterprise.identifier, :controller => 'catalog', :action => 'show', :id => hit) %> + <%= image_tag(hit.image.public_filename(:minor), :style => 'float:right;') if hit.image %> + + <%= link_to_product(hit) %> <%= _('Price: %d') % hit.price %>
- <%= _('Producer: %s') % link_to_homepage( hit.enterprise.identifier) if hit.enterprise %>
+ <%= _('Suplier: %s') % link_to_homepage(hit.enterprise.name, hit.enterprise.identifier) if hit.enterprise %>
<%= _('Category: %s') % link_to_category(hit.product_category) %>
-- libgit2 0.21.2