Commit 916c5b7de06c90dfbc2fdec326700a74d5c55e9e
1 parent
53c7ca13
Exists in
master
and in
5 other branches
Remove useless tab from person profile
Showing
1 changed file
with
2 additions
and
7 deletions
Show diff stats
lib/mpog_software_plugin.rb
@@ -94,17 +94,12 @@ class MpogSoftwarePlugin < Noosfero::Plugin | @@ -94,17 +94,12 @@ class MpogSoftwarePlugin < Noosfero::Plugin | ||
94 | end | 94 | end |
95 | 95 | ||
96 | def profile_tabs | 96 | def profile_tabs |
97 | - if context.profile.person? | ||
98 | - { :title => _("Secundary Information"), | ||
99 | - :id => 'mpog-fields', | ||
100 | - :content => Proc::new do render :partial => 'profile_tab' end, | ||
101 | - :start => true } | ||
102 | - elsif context.profile.software? | 97 | + if context.profile.community? && context.profile.software? |
103 | { :title => _("Software"), | 98 | { :title => _("Software"), |
104 | :id => 'mpog-fields', | 99 | :id => 'mpog-fields', |
105 | :content => Proc::new do render :partial => 'software_tab' end, | 100 | :content => Proc::new do render :partial => 'software_tab' end, |
106 | :start => true } | 101 | :start => true } |
107 | - elsif context.profile.institution? | 102 | + elsif context.profile.community? && context.profile.institution? |
108 | { :title => _("Institution"), | 103 | { :title => _("Institution"), |
109 | :id => 'mpog-fields', | 104 | :id => 'mpog-fields', |
110 | :content => Proc::new do render :partial => 'institution_tab' end, | 105 | :content => Proc::new do render :partial => 'institution_tab' end, |