diaspora/app/views/services/finder.html.haml
2011-01-28 17:13:20 -08:00

34 lines
1.1 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
#aspect_edit_pane.larger
#facebox_header
%h4
= t('.invite_your_friends_from', :service => params[:provider].titleize)
.description
- if @friends.keys.length > 0
= t('.friends', :count => @friends.keys.length)
- else
%i= t('.not_connected')
.contact_list
- if @friends.keys.length > 0
= search_field_tag :contact_search, "", :class => 'contact_list_search', :results => 5, :placeholder => t('shared.contact_list.all_contacts')
%ul
- for uid in @friends.keys
= render :partial => 'remote_friend', :locals => {:friend => @friends[uid], :uid => uid}
- else
%br
%br
%br
%br
%br
%br
%br
%h4{:style => 'text-align:center;'}
= link_to t('services.index.connect_to_facebook'), "/auth/facebook" if SERVICES['facebook']['app_id'] !=""