Commit 0d1e5791b85f23265791facdfc3ce647657ccccc
1 parent
4eb56579
Exists in
master
and in
29 other branches
change wall tab to default on users's profile
Showing
1 changed file
with
3 additions
and
4 deletions
Show diff stats
app/views/profile/index.rhtml
@@ -19,22 +19,21 @@ | @@ -19,22 +19,21 @@ | ||
19 | <table class='profile'> | 19 | <table class='profile'> |
20 | <tr> | 20 | <tr> |
21 | <td colspan='2'> | 21 | <td colspan='2'> |
22 | - <% plugins_tabs = @plugins.dispatch(:profile_tabs). | ||
23 | - map { |tab| {:title => tab[:title], :id => tab[:id], :content => instance_eval(&tab[:content]), :start => tab[:title]} }%> | 22 | + <% plugins_tabs = @plugins.dispatch(:profile_tabs).map { |tab| {:title => tab[:title], :id => tab[:id], :content => instance_eval(&tab[:content]), :start => tab[:title]} }%> |
24 | 23 | ||
25 | <% tabs = plugins_tabs.select { |tab| tab[:start] } %> | 24 | <% tabs = plugins_tabs.select { |tab| tab[:start] } %> |
26 | 25 | ||
27 | <% if @profile.organization? %> | 26 | <% if @profile.organization? %> |
28 | - <% tabs << {:title => _('Profile'), :id => 'organization-profile', :content => (render :partial => 'organization_profile')} %> | ||
29 | <% if logged_in? && current_person.follows?(@profile) %> | 27 | <% if logged_in? && current_person.follows?(@profile) %> |
30 | <% tabs << {:title => _('Wall'), :id => 'profile-wall', :content => (render :partial => 'profile_wall')} %> | 28 | <% tabs << {:title => _('Wall'), :id => 'profile-wall', :content => (render :partial => 'profile_wall')} %> |
31 | <% end %> | 29 | <% end %> |
30 | + <% tabs << {:title => _('Profile'), :id => 'organization-profile', :content => (render :partial => 'organization_profile')} %> | ||
32 | <% elsif @profile.person? %> | 31 | <% elsif @profile.person? %> |
33 | - <% tabs << {:title => _('Profile'), :id => 'person-profile', :content => (render :partial => 'person_profile')} %> | ||
34 | <% if logged_in? && current_person.follows?(@profile) %> | 32 | <% if logged_in? && current_person.follows?(@profile) %> |
35 | <% tabs << {:title => _('Wall'), :id => 'profile-wall', :content => (render :partial => 'profile_wall')} %> | 33 | <% tabs << {:title => _('Wall'), :id => 'profile-wall', :content => (render :partial => 'profile_wall')} %> |
36 | <% tabs << {:title => _('Network'), :id => 'profile-network', :content => (render :partial => 'profile_network')} %> | 34 | <% tabs << {:title => _('Network'), :id => 'profile-network', :content => (render :partial => 'profile_network')} %> |
37 | <% end %> | 35 | <% end %> |
36 | + <% tabs << {:title => _('Profile'), :id => 'person-profile', :content => (render :partial => 'person_profile')} %> | ||
38 | <% end %> | 37 | <% end %> |
39 | 38 | ||
40 | <% tabs += plugins_tabs.select { |tab| !tab[:start] } %> | 39 | <% tabs += plugins_tabs.select { |tab| !tab[:start] } %> |