<%= render :partial => 'shared/disabled_enterprise' %>

<%= h profile.name %>

<% if @action %> <%= render :partial => 'private_profile' %> <% else %> <% unless profile.description.blank? %>
<%= profile.description %>
<% end %> <% end %> <% if @profile.public? || (logged_in? && current_person.follows?(@profile)) %>
<% 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? %> <% 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? %> <% 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] } %> <%= render_tabs(tabs) %>
<% end %>