diff options
Diffstat (limited to 'app/views/profile/show.html.haml')
-rw-r--r-- | app/views/profile/show.html.haml | 57 |
1 files changed, 31 insertions, 26 deletions
diff --git a/app/views/profile/show.html.haml b/app/views/profile/show.html.haml index 15233f70eee..8ebb4dcb713 100644 --- a/app/views/profile/show.html.haml +++ b/app/views/profile/show.html.haml @@ -1,33 +1,38 @@ .ui-box.width-100p %h3= @user.name - = form_for @user, :url => profile_edit_path, :method => :put do |f| + = form_for @user, :url => profile_update_path, :method => :put do |f| .data - -if @user.errors.any? - #error_explanation - %ul - - @user.errors.full_messages.each do |msg| - %li= msg + .left + -if @user.errors.any? + #error_explanation + %ul + - @user.errors.full_messages.each do |msg| + %li= msg - .form-row - = f.label :name - %br - = f.text_field :name - .form-row - = f.label :email - %br - = f.text_field :email - .form-row - = f.label :skype - %br - = f.text_field :skype - .form-row - = f.label :linkedin - %br - = f.text_field :linkedin - .form-row - = f.label :twitter - %br - = f.text_field :twitter + .form-row + = f.label :name + %br + = f.text_field :name + .form-row + = f.label :email + %br + = f.text_field :email + .form-row + = f.label :skype + %br + = f.text_field :skype + .form-row + = f.label :linkedin + %br + = f.text_field :linkedin + .form-row + = f.label :twitter + %br + = f.text_field :twitter + + .right + = image_tag gravatar_icon(current_user.email,64), :width => 64, :style => "margin:5px; border:5px solid #eee;" + .clear .buttons = f.submit 'Save', :class => "grey-button" |