diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index b971ae1..f360f60 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -265,7 +265,7 @@ module ApplicationHelper def link_to_category(category) return _('Uncategorized product') unless category - link_to category.name, :controller => 'category', :action => 'view', :path => category.path.split('/') + link_to category.full_name, :controller => 'category', :action => 'view', :path => category.path.split('/') end def link_to_product(product) diff --git a/app/views/catalog/show.rhtml b/app/views/catalog/show.rhtml index 557904a..fcfc583 100644 --- a/app/views/catalog/show.rhtml +++ b/app/views/catalog/show.rhtml @@ -3,4 +3,6 @@ <%= image_tag @product.image.public_filename if @product.image %>
<%= @product.price %>
<%= @product.description %>
-<%= link_to_category(@product.product_category) %>
+ + +<%= _('Category: %s ') % link_to_category(@product.product_category) %>
diff --git a/app/views/category/_product_category.rhtml b/app/views/category/_product_category.rhtml index 68e46d2..861465a 100644 --- a/app/views/category/_product_category.rhtml +++ b/app/views/category/_product_category.rhtml @@ -1,6 +1,6 @@