Commit 09149e6fef54033c431ee1da95265ec18222d47d

Authored by MoisesMachado
1 parent 6d1b6d1e

ActionItem93: fixed a issue with the view


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1049 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 4 additions and 3 deletions   Show diff stats
app/views/search/_product.rhtml
... ... @@ -4,11 +4,12 @@
4 4 <div>
5 5 <%= icon('product') %>
6 6 <div class='search-result-text'>
7   - <strong>
8   - <%= link_to( hit.name, :profile => hit.enterprise.identifier, :controller => 'catalog', :action => 'show', :id => hit) %>
  7 + <%= image_tag(hit.image.public_filename(:minor), :style => 'float:right;') if hit.image %>
  8 + <strong>
  9 + <%= link_to_product(hit) %>
9 10 </strong>
10 11 <%= _('Price: %d') % hit.price %> <br>
11   - <%= _('Producer: %s') % link_to_homepage( hit.enterprise.identifier) if hit.enterprise %> <br>
  12 + <%= _('Suplier: %s') % link_to_homepage(hit.enterprise.name, hit.enterprise.identifier) if hit.enterprise %> <br>
12 13 <%= _('Category: %s') % link_to_category(hit.product_category) %>
13 14 </div>
14 15 </div>
... ...