Commit 52c12c2e359072b421d9ca2c26abd7bd8e88e8de

Authored by MoisesMachado
1 parent 7f3ef5c7

ActionItem546: not list hierachy of product category and changed display of price


git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2192 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 12 additions and 12 deletions   Show diff stats
app/views/search/_product.rhtml
... ... @@ -6,16 +6,16 @@ product_item_pos += 1
6 6 %>
7 7  
8 8 <li class="product-item <%= ( pos % 2 == 0 ) ? 'odd' : 'even' %>">
9   - <%= link_to_product product, :class => 'product-pic', :style => 'background-image:url(%s)' %
10   - ( product.image ? product.image.public_filename(:minor) : '/images/icons-app/product-default-pic-minor.png' ) %>
11   - <strong>
12   - <%= link_to_product product %>
13   - </strong>
14   - <ul>
15   - <li> <%= _('Price: %d') % product.price %> </li>
16   - <% if product.enterprise %>
17   - <li> <%= _('Suplier: %s') % link_to_homepage(product.enterprise.name, product.enterprise.identifier) %> </li>
18   - <% end %>
19   - <li> <%= link_to_category(product.product_category) %> </li>
20   - </ul>
  9 + <%= link_to_product product, :class => 'product-pic', :style => 'background-image:url(%s)' %
  10 + ( product.image ? product.image.public_filename(:minor) : '/images/icons-app/product-default-pic-minor.png' ) %>
  11 + <strong>
  12 + <%= link_to_product product %>
  13 + </strong>
  14 + <ul>
  15 + <li> <%= _('Price: %s') % (product.price ? product.price : _('Not informed')) %> </li>
  16 + <% if product.enterprise %>
  17 + <li> <%= _('Suplier: %s') % link_to_homepage(product.enterprise.name, product.enterprise.identifier) %> </li>
  18 + <% end %>
  19 + <li> <%= _('Category:') + ' ' + link_to_category(product.product_category, false) %> </li>
  20 + </ul>
21 21 </li>
... ...