2012-01-29 22:59:12 +01:00
|
|
|
.media-grid
|
|
|
|
= link_to "#" do
|
|
|
|
= image_tag gravatar_icon(@user.email, 90), :class => "thumbnail"
|
2012-03-10 22:41:05 +01:00
|
|
|
%h3.media_h
|
|
|
|
= @user.name
|
|
|
|
%br
|
|
|
|
%small
|
|
|
|
= @user.email
|
|
|
|
|
|
|
|
.right
|
|
|
|
%p.alert-message.block-message You can change your avatar at gravatar.com
|
2012-01-29 22:59:12 +01:00
|
|
|
|
|
|
|
%hr
|
2011-10-20 00:34:05 +02:00
|
|
|
|
2012-01-27 00:46:32 +01:00
|
|
|
= form_for @user, :url => profile_update_path, :method => :put do |f|
|
|
|
|
-if @user.errors.any?
|
|
|
|
%div.alert-message.block-message.error
|
|
|
|
%ul
|
|
|
|
- @user.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
2011-12-20 21:47:09 +01:00
|
|
|
|
2012-01-27 00:46:32 +01:00
|
|
|
.clearfix
|
|
|
|
= f.label :name
|
|
|
|
.input= f.text_field :name
|
|
|
|
.clearfix
|
|
|
|
= f.label :email
|
|
|
|
.input= f.text_field :email
|
|
|
|
.clearfix
|
|
|
|
= f.label :skype
|
|
|
|
.input= f.text_field :skype
|
|
|
|
.clearfix
|
|
|
|
= f.label :linkedin
|
|
|
|
.input= f.text_field :linkedin
|
|
|
|
.clearfix
|
|
|
|
= f.label :twitter
|
|
|
|
.input= f.text_field :twitter
|
|
|
|
|
2012-02-11 18:56:18 +01:00
|
|
|
.actions
|
|
|
|
= f.submit 'Save', :class => "primary btn"
|
2011-10-20 00:34:05 +02:00
|
|
|
|