From a594c9a34f16173468c815537d0fe96e915af6c7 Mon Sep 17 00:00:00 2001 From: ilya Date: Thu, 23 Sep 2010 20:19:02 -0700 Subject: [PATCH] friends in the public bucket --- app/views/shared/_aspect_friends.haml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/shared/_aspect_friends.haml b/app/views/shared/_aspect_friends.haml index f4aa811b1..10a0da317 100644 --- a/app/views/shared/_aspect_friends.haml +++ b/app/views/shared/_aspect_friends.haml @@ -7,7 +7,11 @@ = owner_image_link - for friend in @friends = person_image_link(friend) - + - if @logged_in && (@aspect == :public) + Facebook Friends + - @fb_friends = MiniFB.get(@access_token, 'me', :type => "friends") + - @fb_friends[:data].each do |friend| + = image_tag( "http://graph.facebook.com/#{friend[:id]}/picture" ) -unless (@aspect == :all) || (@aspect == :public) = link_to (image_tag('add_friend_button.png', :height => "50px", :width => "50px")), "#add_request_pane", :id => 'add_request_button'