From 0d1e5791b85f23265791facdfc3ce647657ccccc Mon Sep 17 00:00:00 2001 From: Francisco Marcelo A. Lima JĂșnior Date: Thu, 28 Nov 2013 14:01:14 -0300 Subject: [PATCH] change wall tab to default on users's profile --- app/views/profile/index.rhtml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/views/profile/index.rhtml b/app/views/profile/index.rhtml index 2f70250..c53054c 100644 --- a/app/views/profile/index.rhtml +++ b/app/views/profile/index.rhtml @@ -19,22 +19,21 @@
- <% plugins_tabs = @plugins.dispatch(:profile_tabs). - map { |tab| {:title => tab[:title], :id => tab[:id], :content => instance_eval(&tab[:content]), :start => tab[:title]} }%> + <% plugins_tabs = @plugins.dispatch(:profile_tabs).map { |tab| {:title => tab[:title], :id => tab[:id], :content => instance_eval(&tab[:content]), :start => tab[:title]} }%> <% tabs = plugins_tabs.select { |tab| tab[:start] } %> <% if @profile.organization? %> - <% tabs << {:title => _('Profile'), :id => 'organization-profile', :content => (render :partial => 'organization_profile')} %> <% if logged_in? && current_person.follows?(@profile) %> <% tabs << {:title => _('Wall'), :id => 'profile-wall', :content => (render :partial => 'profile_wall')} %> <% end %> + <% tabs << {:title => _('Profile'), :id => 'organization-profile', :content => (render :partial => 'organization_profile')} %> <% elsif @profile.person? %> - <% tabs << {:title => _('Profile'), :id => 'person-profile', :content => (render :partial => 'person_profile')} %> <% if logged_in? && current_person.follows?(@profile) %> <% tabs << {:title => _('Wall'), :id => 'profile-wall', :content => (render :partial => 'profile_wall')} %> <% tabs << {:title => _('Network'), :id => 'profile-network', :content => (render :partial => 'profile_network')} %> <% end %> + <% tabs << {:title => _('Profile'), :id => 'person-profile', :content => (render :partial => 'person_profile')} %> <% end %> <% tabs += plugins_tabs.select { |tab| !tab[:start] } %> -- libgit2 0.21.2