diaspora/app/views/people/_person.html.haml
2010-11-30 13:01:53 -08:00

26 lines
868 B
Text

-# 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.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_connected')
- elsif current_user.request_for(person)
= link_to t('.pending_request'), aspects_manage_path
- else
- single_aspect_form ||= nil
= render(:partial => request_partial(single_aspect_form), :locals => {:aspects => aspects, :destination_handle => person.diaspora_handle})
.info
= person.diaspora_handle