diff --git a/app/controllers/registrations_controller.rb b/app/controllers/registrations_controller.rb index c4883bd4d..7cfe01390 100644 --- a/app/controllers/registrations_controller.rb +++ b/app/controllers/registrations_controller.rb @@ -3,6 +3,7 @@ class RegistrationsController < Devise::RegistrationsController def edit @twitter_auth = current_member.auth('twitter') @flickr_auth = current_member.auth('flickr') + @facebook_auth = current_member.auth('facebook') render "edit" end diff --git a/app/views/devise/registrations/_edit_apps.html.haml b/app/views/devise/registrations/_edit_apps.html.haml index 6445c0bc0..e4d49c9ef 100644 --- a/app/views/devise/registrations/_edit_apps.html.haml +++ b/app/views/devise/registrations/_edit_apps.html.haml @@ -25,3 +25,15 @@ = link_to "Disconnect", @flickr_auth, :confirm => "Are you sure you want to remove this connection?", :method => :delete, :class => "remove" - else =link_to 'Connect to Flickr', '/auth/flickr' + + .row + .col-md-12 + %p + = image_tag "facebook_32.png", :size => "32x32", :alt => 'Facebook logo' + - if @facebook_auth + You are connected to Facebook as + = succeed "." do + =link_to @facebook_auth.name, "http://facebook.com/profile/#{@facebook_auth.uid}" + = link_to "Disconnect", @facebook_auth, :confirm => "Are you sure you want to remove this connection?", :method => :delete, :class => "remove" + - else + =link_to 'Connect to Facebook', '/auth/facebook' \ No newline at end of file