-# Copyright (c) 2010, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. %li.message{:id => person.id} = person_image_link(person) .content %span.from = link_to person.real_name, person_path(person) .right{:style=>"display:inline;"} - if person.id == current_user.person.id = t('.thats_you') - elsif current_user.person_objects.include?(person) = t('.already_friends') - elsif current_user.pending_requests.find_by_person_id(person.id) = link_to =t('.pending_request'), aspects_manage_path - else = form_for Request.new do |f| = f.select(:aspect_id, @aspects_dropdown_array) = f.hidden_field :destination_url, :value => person.diaspora_handle = f.submit t('.add_friend') .info = person.diaspora_handle