2011-10-08 17:36:38 -04:00
|
|
|
.span-2
|
|
|
|
= image_tag gravatar_icon(@user.email), :class => "left", :width => 60, :style => "padding-right:5px;"
|
|
|
|
%p
|
|
|
|
%b Name:
|
|
|
|
= @user.name
|
|
|
|
%p
|
|
|
|
%b Email:
|
|
|
|
= @user.email
|
2011-10-19 18:34:05 -04:00
|
|
|
|
|
|
|
%br
|
|
|
|
|
|
|
|
= form_for @user, :url => profile_edit_path, :method => :put do |f|
|
|
|
|
-if @user.errors.any?
|
|
|
|
#error_explanation
|
|
|
|
%ul
|
|
|
|
- @user.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
|
|
|
|
|
|
|
.div
|
|
|
|
= f.label :skype
|
|
|
|
%br
|
|
|
|
= f.text_field :skype
|
|
|
|
.div
|
|
|
|
= f.label :linkedin
|
|
|
|
%br
|
|
|
|
= f.text_field :linkedin
|
|
|
|
.div
|
|
|
|
= f.label :twitter
|
|
|
|
%br
|
|
|
|
= f.text_field :twitter
|
|
|
|
.actions
|
|
|
|
= f.submit 'Save', :class => "lbutton vm"
|
|
|
|
|