From 916c5b7de06c90dfbc2fdec326700a74d5c55e9e Mon Sep 17 00:00:00 2001 From: Arthur Del Esposte Date: Thu, 4 Dec 2014 19:26:39 +0000 Subject: [PATCH] Remove useless tab from person profile --- lib/mpog_software_plugin.rb | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/mpog_software_plugin.rb b/lib/mpog_software_plugin.rb index 77378ac..c3fb09b 100644 --- a/lib/mpog_software_plugin.rb +++ b/lib/mpog_software_plugin.rb @@ -94,17 +94,12 @@ class MpogSoftwarePlugin < Noosfero::Plugin end def profile_tabs - if context.profile.person? - { :title => _("Secundary Information"), - :id => 'mpog-fields', - :content => Proc::new do render :partial => 'profile_tab' end, - :start => true } - elsif context.profile.software? + if context.profile.community? && context.profile.software? { :title => _("Software"), :id => 'mpog-fields', :content => Proc::new do render :partial => 'software_tab' end, :start => true } - elsif context.profile.institution? + elsif context.profile.community? && context.profile.institution? { :title => _("Institution"), :id => 'mpog-fields', :content => Proc::new do render :partial => 'institution_tab' end, -- libgit2 0.21.2