<% links = [] if logged_in? if profile.enable_contact? links.push(_('Send an e-mail') => {:href => url_for({:controller => 'contact', :action => 'new', :profile => profile.identifier})}) end links.push(_('Report abuse') => {:href => url_for({:controller => 'profile', :action => 'report_abuse', :profile => profile.identifier})}) if !user.nil? && user.has_permission?('edit_profile', profile) links.push(_('Control panel') => {:href => url_for({:controller => 'profile_editor', :profile => profile.identifier})}) end %> <%= link_to( content_tag('span','',:class => 'community-block-button icon-arrow'), '#', :onclick => "toggleSubmenu(this,'',#{j links.to_json}); return false;", :class => 'simplemenu-trigger') %> <% end %> <% if logged_in? %> <% if profile.members.include?(user) || profile.already_request_membership?(user) %> <%= link_to( content_tag('span', '', :class => 'community-block-button icon-remove'), profile.leave_url) %> <% else %> <%= link_to( content_tag('span', '', :class => 'community-block-button icon-add'), profile.join_url) %> <% end %> <% else %> <%= link_to( content_tag('span', '', :class => 'community-block-button icon-add'), profile.join_not_logged_url) %> <% end %>

<%=profile.name%>

<%= profile.description %>