diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2011-12-21 00:47:09 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2011-12-21 00:47:09 +0400 |
commit | 9a2a8612769d472503b367fa35e99f6fb2876704 (patch) | |
tree | 26cdb4e66b5e664fe4bcd57d011c54c9c9c26ded /app/views/profile/show.html.haml | |
parent | 2f7b67161952fc9ab322eba6878511b5f2dd5cf1 (diff) |
Design tab for profile. Colorscheme as db valuev2.0.0
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" |