48 lines
1.7 KiB
Text
48 lines
1.7 KiB
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
|
|
= include_javascripts :aspects
|
|
|
|
.span-24.last
|
|
%h3
|
|
Facebook friend finder
|
|
|
|
.span-12.prepend-6
|
|
.contact_list
|
|
= search_field_tag :contact_search, "", :class => 'contact_list_search', :results => 5, :placeholder => t('shared.contact_list.all_contacts')
|
|
%ul
|
|
- for uid in @friends.keys
|
|
- friend = @friends[uid]
|
|
%li
|
|
.right
|
|
-if friend[:contact] && !friend[:contact].pending
|
|
= t('people.person.already_connected')
|
|
- elsif (friend[:contact] && friend[:contact].pending)
|
|
= t('people.person.pending_request')
|
|
- elsif friend[:person]
|
|
= link_to t('people.show.start_sharing'),
|
|
{:controller => "people",
|
|
:action => "share_with",
|
|
:id => friend[:person].id},
|
|
:class => 'button',
|
|
:rel => 'facebox'
|
|
- elsif friend[:invitation]
|
|
= t('invitations.new.already_invited')
|
|
- else
|
|
= form_tag service_inviter_path do
|
|
= select_tag(:aspect_id, options_from_collection_for_select(@all_aspects, 'id', 'name'))
|
|
= hidden_field_tag :uid, uid
|
|
= hidden_field_tag :provider, 'facebook'
|
|
= submit_tag "invite"
|
|
|
|
- if friend[:person]
|
|
= person_image_link(friend[:person])
|
|
|
|
%h4.name
|
|
- if friend[:person]
|
|
= link_to friend[:name], person_path(friend[:person])
|
|
- else
|
|
= friend[:name]
|
|
|