Skip to content
Extraits de code Groupes Projets
_aspect_friends.haml 998 octets
Newer Older
Raphael's avatar
Raphael a validé
-#   Copyright (c) 2010, Diaspora Inc.  This file is
Raphael's avatar
Raphael a validé
-#   licensed under the Affero General Public License version 3.  See
-#   the COPYRIGHT file.
  - for friend in @friends
    = person_image_link(friend)
ilya's avatar
ilya a validé
    - if @logged_in && (@aspect == :public)
ilya's avatar
ilya a validé
      %h3 Facebook Friends
ilya's avatar
ilya a validé
      - @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'
  
    .yo{:style => 'display:none'}
      #add_request_pane
        = render "requests/new_request", :aspect => @aspect 
  -else
    .clear
      = link_to "add friends", aspects_manage_path