<% if block.title.present? %>
<%= block.title %>
<% end %>
<%= link_to profile_image(block.owner, :big) +"\n", profile.url %>
<% if show_name %>
<%= h block.owner.short_name %>
<% end %>
<% if !user.nil? and user.has_permission?('edit_profile', profile) %>
<%= link_to _('Control panel'), block.owner.admin_url %>
<% end %>
<%= render_profile_actions block.owner.class %>