<%= h profile.name %>

<% if @action %> <%= render :partial => 'private_profile' %> <% else %> <% unless profile.description.blank? %>
<%= profile.description %>
<% end %> <% end %>
<%= render "blocks/profile_info_actions/join_leave_community" if profile.class == "Community" %> <% if !user.nil? && user.has_permission?('edit_profile', profile) %>
<%= button :control_panel, _('Control Panel'), profile.admin_url %>
<% end %>
<% if @profile.public? || (logged_in? && current_person.follows?(@profile)) %>
<% end %>