Commit 2521d38d923114a10f3290c7ec1cc8a9a6c41696
1 parent
46e64845
Exists in
master
and in
22 other branches
ActionItem93: cosmetic changes; marking translation
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1068 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
8 additions
and
3 deletions
Show diff stats
app/views/category/_product_category.rhtml
1 | -<%= @products.size.to_s + " products in this category" %> | |
2 | -<%= @enterprises.size.to_s + " enterprises sells products in this category" %> | |
1 | +<ul> | |
2 | + <li><%= _("%d products in this category") % @products.size.to_s %></li> | |
3 | + <li><%= _("%d enterprises sells products in this category") % @enterprises.size.to_s %></li> | |
4 | +</ul> | |
3 | 5 | |
4 | 6 | <ul> |
5 | 7 | <% @products.each do |p| %> |
6 | 8 | <li> |
7 | 9 | <%= image_tag p.image.public_filename(:thumb) if p.image%> <%= link_to_product(p) %> <br/> |
8 | - <% _('Price:') %> <% p.price %> <%= _('Enterprise:') %> <%= link_to_homepage p.enterprise.name, p.enterprise.identifier %> <br/><br/> | |
10 | + <% if p.price %> | |
11 | + <%= _('Price: %d') % p.price %> <br/> | |
12 | + <% end %> | |
13 | + <%= _('Enterprise:') %> <%= link_to_homepage p.enterprise.name, p.enterprise.identifier %> <br/><br/> | |
9 | 14 | </li> |
10 | 15 | <% end %> |
11 | 16 | </ul> | ... | ... |