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 @@
<%= _('Product: ') %> <%= f.select "product_category_id", ProductCategory.find(:all).map{|pc| [pc.name, pc.id]} %>
- <%= _('Aditional specifications: ') %>
<%= f.text_area "aditional_specifications" %>
<%= _('Product:') %> <%= f.select "product_category_id", ProductCategory.find(:all).map{|pc| [pc.name, pc.id]} %>
+ <%= _('Aditional specifications:') %>
<%= f.text_area "aditional_specifications" %>
<%= _('Identifier: ') %> <%= @enterprise.identifier %>
-<%= _('Address: ') %> <%= @enterprise.address %>
-<%= _('Contact phone: ') %> <%= @enterprise.contact_phone %>
-<%= _('Contact person: ') %> <%= @enterprise.organization_info.contact_person %>
-<%= _('Acronym: ') %> <%= @enterprise.organization_info.acronym %>
-<%= _('Foundation year: ') %> <%= @enterprise.organization_info.foundation_year %>
-<%= _('Legal Form: ') %> <%= @enterprise.organization_info.legal_form %>
-<%= _('Economic activity: ') %> <%= @enterprise.organization_info.economic_activity %>
-<%= _('Management infomation: ') %> <%= @enterprise.organization_info.management_information %>
+<%= _('Identifier:') %> <%= @enterprise.identifier %>
+<%= _('Address:') %> <%= @enterprise.address %>
+<%= _('Contact phone:') %> <%= @enterprise.contact_phone %>
+<%= _('Contact person:') %> <%= @enterprise.organization_info.contact_person %>
+<%= _('Acronym:') %> <%= @enterprise.organization_info.acronym %>
+<%= _('Foundation year:') %> <%= @enterprise.organization_info.foundation_year %>
+<%= _('Legal Form:') %> <%= @enterprise.organization_info.legal_form %>
+<%= _('Economic activity:') %> <%= @enterprise.organization_info.economic_activity %>
+<%= _('Management infomation:') %> <%= @enterprise.organization_info.management_information %>
<%= link_to _('Edit enterprise'), :action => 'edit', :id => @enterprise %> <%= help _('Change the information about the enterprise') %> diff --git a/app/views/environment_role_manager/change_role.rhtml b/app/views/environment_role_manager/change_role.rhtml index 6b93c29..4056de7 100644 --- a/app/views/environment_role_manager/change_role.rhtml +++ b/app/views/environment_role_manager/change_role.rhtml @@ -2,7 +2,7 @@ <% labelled_form_for :member, @admin, :url => {:action => 'update_roles'} do |f| %> - <%= _('Roles: ') %><%= link_to product.name, :action => 'show', :id => product %> - <%= _('Price: ') %> <%= product.price %> + <%= _('Price:') %> <%= product.price %> <%= link_to _('edit'), :action => 'edit', :id => product %> <%= link_to _('destroy'), :action => 'destroy', :id => product %>
<% end %> diff --git a/app/views/manage_products/show.rhtml b/app/views/manage_products/show.rhtml index 6d375a3..be1fd61 100644 --- a/app/views/manage_products/show.rhtml +++ b/app/views/manage_products/show.rhtml @@ -1,9 +1,9 @@<%= image_tag @product.image.public_filename if @product.image %>
-<%= _('Price: ') %> <%= @product.price %>
-<%= _('Description: ') %> <%= @product.description %>
-<%= _('Category: ') %> <%= link_to_category(@product.product_category) %>
+<%= _('Price:') %> <%= @product.price %>
+<%= _('Description:') %> <%= @product.description %>
+<%= _('Category:') %> <%= link_to_category(@product.product_category) %>
<%= link_to _('edit'), :action => 'edit', :id => @product %> <%= link_to _('destroy'), :action => 'destroy', :id => @product %> diff --git a/app/views/profile_members/change_role.rhtml b/app/views/profile_members/change_role.rhtml index 4212c77..07b65a6 100644 --- a/app/views/profile_members/change_role.rhtml +++ b/app/views/profile_members/change_role.rhtml @@ -2,7 +2,7 @@ <% labelled_form_for :member, @member, :url => {:action => 'update_roles'} do |f| %> - <%= _('Roles: ') %>