Skip to content

Commit

Permalink
Made linked account area a little nicer looking
Browse files Browse the repository at this point in the history
  • Loading branch information
BRIMIL01 committed Mar 28, 2011
1 parent 51e0415 commit add35bf
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions views/users/edit.haml
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,27 @@
%br

%h4 Linked Accounts

- if @user.twitter?
%img{:src => "/images/twitter_newbird_blue.png", :height => "20", :width => "20"}
%span= "Twitter: #{@user.twitter.nickname}"
%form#profile-update{:action => "/users/#{@user.username}/auth/twitter", :method => "POST", :name => "profile_update_form", :style => "float: left;"}
%input{:type => "hidden", :name => "_method", :value => "delete"}
%input#update-button.button{:type => "submit", :value => "Remove"}
- else
%form#profile-update{:action => "/auth/twitter", :method => "GET", :name => "profile_update_form"}
%input#update-button.button{:type => "submit", :value => "Add Twitter Account"}
%br
- if @user.facebook?
%img{:src => "/images/f_logo.png", :height => "20", :width => "20"}
%span= "Facebook: #{@user.facebook.nickname}"
%form#profile-update{:action => "/users/#{@user.username}/auth/facebook", :method => "POST", :name => "profile_update_form", :style => "float: left;"}
%input{:type => "hidden", :name => "_method", :value => "delete"}
%input#update-button.button{:type => "submit", :value => "Remove"}
- else
%form#profile-update{:action => "/auth/facebook", :method => "GET", :name => "profile_update_form"}
%input#update-button.button{:type => "submit", :value => "Add Facebook Account"}

%div{:style => "height: 35px;"}
- if @user.twitter?
%img{:src => "/images/twitter_newbird_blue.png", :style => "height: 35px; width: 35px; vertical-align:middle; margin-top: -5px;", :alt => "Twitter Account"}
="#{@user.twitter.nickname}"
%form#profile-update{:action => "/users/#{@user.username}/auth/twitter", :method => "POST", :name => "profile_update_form", :style => "float: right;"}
%input{:type => "hidden", :name => "_method", :value => "delete"}
%input#update-button.button{:type => "submit", :value => "Remove"}
- else
%form#profile-update{:action => "/auth/twitter", :method => "GET", :name => "profile_update_form"}
%input#update-button.button{:type => "submit", :value => "Add Twitter Account"}

%div{:style => "height: 35px;"}
- if @user.facebook?
%img{:src => "/images/f_logo.png", :style => "height: 25px; width: 25px; vertical-align:middle; margin-top: -5px;", :alt => "Facebook Account"}
="#{@user.facebook.nickname}"
%form#profile-update{:action => "/users/#{@user.username}/auth/facebook", :method => "POST", :name => "profile_update_form", :style => "float: right;"}
%input{:type => "hidden", :name => "_method", :value => "delete"}
%input#update-button.button{:type => "submit", :value => "Remove"}
- else
%form#profile-update{:action => "/auth/facebook", :method => "GET", :name => "profile_update_form"}
%input#update-button.button{:type => "submit", :value => "Add Facebook Account"}


0 comments on commit add35bf

Please sign in to comment.