diff --git a/app/controllers/public/catalog_controller.rb b/app/controllers/public/catalog_controller.rb index 569bd73..8cdb825 100644 --- a/app/controllers/public/catalog_controller.rb +++ b/app/controllers/public/catalog_controller.rb @@ -12,7 +12,9 @@ class CatalogController < ApplicationController protected def check_enterprise - @profile.kind_of? Enterprise + unless @profile.kind_of? Enterprise + redirect_to :controller => 'profile', :profile => profile.identifier, :action => 'index' + end end end diff --git a/app/views/blocks/profile_info.rhtml b/app/views/blocks/profile_info.rhtml index adea1b3..5b0eeca 100644 --- a/app/views/blocks/profile_info.rhtml +++ b/app/views/blocks/profile_info.rhtml @@ -6,6 +6,7 @@
  • <%= _('Since %{year}/%{month}') % { :year => block.owner.created_at.year, :month => block.owner.created_at.month } %>
  • <%= link_to _('Homepage'), block.owner.url %>
  • <%= link_to _('View profile'), block.owner.public_profile_url %>
  • +
  • <%= link_to(_('Products/Services'), :controller => 'catalog', :profile => block.owner.identifier) if block.owner.enterprise? %>
  • <% if !user.nil? and user.has_permission?('edit_profile', profile) %>
  • <%= link_to _('Control panel'), :controller => 'profile_editor' %>
  • <% end %> diff --git a/app/views/catalog/index.rhtml b/app/views/catalog/index.rhtml index d71e7ef..0a795a3 100644 --- a/app/views/catalog/index.rhtml +++ b/app/views/catalog/index.rhtml @@ -1,11 +1,15 @@ -

    <%= _('Catalog') %>

    +

    <%= _('%s:Products/Services') % @profile.name %>

    -