_person.html.haml 1.14 KB
Newer Older
1
-#   Copyright (c) 2010, Diaspora Inc.  This file is
Raphael's avatar
Raphael committed
2
-#   licensed under the Affero General Public License version 3 or later.  See
3 4
-#   the COPYRIGHT file.

5
.stream_element{:id => person.id}
6

7 8 9 10 11
  .right{:style=>"display:inline;"}
    - if person.owner_id == current_user.id
      = t('.thats_you')
    - elsif contact && !contact.pending
      = t('.already_connected')
12
    - elsif (contact && contact.pending) || (request && request.recipient == person)
13
      = t('.pending_request')
14 15
    - elsif request && request.sender == person
      = link_to t('people.show.incoming_request', :name => truncate(person.name, :length => 20, :separator => ' ', :omission => '')),
16 17 18
        {:controller => "contacts",
        :action => "new",
        :person_id => person.id},
19 20
        :class => 'share_with button',
        :rel => 'facebox'
21
    - else
MrZYX's avatar
MrZYX committed
22
      = link_to t('people.show.start_sharing'),
23 24 25
        {:controller => "contacts",
        :action => "new",
        :person_id => person.id},
26 27
        :class => 'button',
        :rel => 'facebox'
28

29 30 31 32
  = person_image_link(person)

  .content
    %span.from
Raphael's avatar
Raphael committed
33
      =person_link(person)
34 35 36 37

    .info
      = person.diaspora_handle