[Git][noosfero/noosfero][master] 2 commits: Removes catalog link from enterprise profile page

Rodrigo Souto gitlab at mg.gitlab.com
Mon Jan 23 17:45:17 BRST 2017


Rodrigo Souto pushed to branch master at Noosfero / noosfero


Commits:
c58ea741 by Gabriel Silva at 2017-01-23T17:40:21+00:00
Removes catalog link from enterprise profile page

Signed-off-by: Gabriel Silva <gabriel93.silva at gmail.com>

- - - - -
c53dde8e by Rodrigo Souto at 2017-01-23T19:45:14+00:00
Merge branch 'enterprise_products' into 'master'

Fixes catalog link in enterprise profile page

Closes #244

See merge request !1096
- - - - -


1 changed file:

- app/helpers/profile_helper.rb


Changes:

=====================================
app/helpers/profile_helper.rb
=====================================
--- a/app/helpers/profile_helper.rb
+++ b/app/helpers/profile_helper.rb
@@ -17,7 +17,7 @@ module ProfileHelper
   ORGANIZATION_CATEGORIES = {}
   ORGANIZATION_CATEGORIES[:basic_information] = [:display_name, :created_at, :foundation_year, :type, :language, :members_count, :location, :address_reference, :historic_and_current_context, :admins]
   ORGANIZATION_CATEGORIES[:contact] = [:contact_person, :contact_phone, :contact_email, :organization_website, :jabber_id]
-  ORGANIZATION_CATEGORIES[:economic] = [:business_name, :acronym, :economic_activity, :legal_form, :products, :activities_short_description, :management_information]
+  ORGANIZATION_CATEGORIES[:economic] = [:business_name, :acronym, :economic_activity, :legal_form, :activities_short_description, :management_information]
   ORGANIZATION_CATEGORIES.merge!(COMMON_CATEGORIES)
 
   CATEGORY_MAP = {}
@@ -127,12 +127,6 @@ module ProfileHelper
     link_to count, :controller => 'profile', :action => 'members'
   end
 
-  def treat_products(products)
-    if profile.kind_of?(Enterprise) && profile.environment.enabled?('products_for_enterprises')
-      link_to _('Products/Services'), :controller => 'catalog', :action => 'index'
-    end
-  end
-
   def treat_admins(admins)
     profile.admins.map { |admin| link_to(admin.short_name, admin.url)}.join(', ')
   end



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/370d6f4d3cb9f26020bffdc6337d3937807a8429...c53dde8e84e0f5a431d44bc2f00fc7db86f66b88
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170123/ed970aaa/attachment-0001.html>


More information about the Noosfero-dev mailing list