From e208d179bb4dd2cbf5f62d6adefe0ed589cdfad8 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Sun, 2 Dec 2007 05:33:31 +0000 Subject: [PATCH] ActionItem93: removing extra space --- app/helpers/application_helper.rb | 2 +- app/views/catalog/show.rhtml | 4 +++- app/views/category/_product_category.rhtml | 4 ++-- app/views/category/view.rhtml | 6 ++++-- app/views/consumed_products/new.rhtml | 4 ++-- app/views/enterprise_editor/index.rhtml | 18 +++++++++--------- app/views/environment_role_manager/change_role.rhtml | 2 +- app/views/environment_role_manager/make_admin.rhtml | 2 +- app/views/manage_products/index.rhtml | 2 +- app/views/manage_products/show.rhtml | 6 +++--- app/views/profile_members/change_role.rhtml | 2 +- app/views/role/_form.rhtml | 2 +- 12 files changed, 29 insertions(+), 25 deletions(-) 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 @@