diaspora/app/views/people/_aspect_list.haml

30 lines
1,019 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.
- content_for :head do
=javascript_include_tag 'contact-list'
.aspects
- if !contact || !contact.persisted?
%h4
= link_to truncate(t('people.show.not_connected', :name => person.name), :length => 49, :separator => ' ', :omission => ''),
{:controller => "contacts",
:action => "new",
:person_id => person.id},
:class => 'share_with button',
:rel => 'facebox'
- elsif contact.pending
%h4
= t('people.person.pending_request')
- else
.badges{:class => ("hidden" if !contact.persisted?)}
= aspect_badges(aspects_with_person)
%p
= link_to t('.edit_membership'),
{:controller => "contacts",
:action => "edit",
:id => contact.id,
:person_id => person.id},
:class => 'button',
:rel => 'facebox'