WIP facebook friends widget
[shapado:cantonics-shapado.git] / app / views / widgets / _facebook_friends.haml
1 - if logged_in?
2   %h3
3     =t(".title")
4   .content
5     %ul.list
6       -current_user.suggested_fb_friends.each do |suggested_friend|
7         %li
8           .gravatar
9             = facebook_avatar(suggested_friend.facebook_id)
10           .item
11             = link_to h(suggested_friend.login), user_path(suggested_friend)
12           .item
13             = link_to "+ #{t("users.show.follow")}", follow_user_path(suggested_friend), :class => "follow_link", 'data-class' => "unfollow_link", 'data-title' => t("users.show.unfollow"), 'data-undo' => unfollow_user_path(suggested_friend)
14         %li
15           = common_follower(current_user, suggested_friend)
16     .more
17       = link_to t("scaffold.more"), users_path
18       .clear
19   .clear