_person.html.erb 641 Bytes
<ul>
  <%if logged_in? && (user != profile) %>

    <% if !user.already_request_friendship?(profile) and !user.is_a_friend?(profile) %>
      <li>
      <%= button(:add, content_tag('span', _('Add friend')), profile.add_url, :class => 'add-friend', :title => _("Add friend"), :style => 'position: relative;') %>
      </li>
    <% end %>

    <% if user.is_a_friend?(profile) && profile.enable_contact? %>
      <li><%= button(:back, _('Send an e-mail'), {:profile => profile.identifier, :controller => 'contact', :action => 'new'}) %></li>
    <% end %>

    <%= render :partial => 'blocks/profile_info_actions/common' %>
  <% end %>
</ul>