2012-03-23 23:01:36 +00:00
|
|
|
.row
|
|
|
|
.span10
|
|
|
|
.profile_avatar_holder
|
|
|
|
= image_tag gravatar_icon(@user.email, 90), :class => "styled_image"
|
|
|
|
%h3
|
|
|
|
= @user.name
|
|
|
|
%br
|
|
|
|
%small
|
|
|
|
= @user.email
|
|
|
|
|
|
|
|
.span6.right
|
|
|
|
%div
|
|
|
|
%div
|
|
|
|
%h5.cgray
|
|
|
|
Personal projects:
|
|
|
|
%span.right
|
|
|
|
%span= current_user.my_own_projects.count
|
|
|
|
of
|
|
|
|
%span= current_user.projects_limit
|
|
|
|
%h5.cgray
|
|
|
|
SSH public keys:
|
|
|
|
%span.right
|
|
|
|
%span= current_user.keys.count
|
2012-01-29 21:59:12 +00:00
|
|
|
%hr
|
2011-10-19 22:34:05 +00:00
|
|
|
|
2012-01-26 23:46:32 +00: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
|
2012-03-23 23:01:36 +00:00
|
|
|
.row
|
|
|
|
.span9
|
|
|
|
.clearfix
|
|
|
|
= f.label :name
|
|
|
|
.input
|
|
|
|
= f.text_field :name, :class => "xlarge"
|
|
|
|
%span.help-block Enter youre name, so people you know can recognize you.
|
|
|
|
.clearfix
|
|
|
|
= f.label :email
|
|
|
|
.input
|
|
|
|
= f.text_field :email, :class => "xlarge"
|
|
|
|
%span.help-block We also use email for avatar detection
|
|
|
|
.clearfix
|
|
|
|
= f.label :skype
|
|
|
|
.input= f.text_field :skype, :class => "xlarge"
|
|
|
|
.clearfix
|
|
|
|
= f.label :linkedin
|
|
|
|
.input= f.text_field :linkedin, :class => "xlarge"
|
|
|
|
.clearfix
|
|
|
|
= f.label :twitter
|
|
|
|
.input= f.text_field :twitter, :class => "xlarge"
|
|
|
|
.clearfix
|
|
|
|
= f.label :bio
|
|
|
|
.input
|
|
|
|
= f.text_area :bio, :rows => 6, :class => "xlarge", :maxlength => 250
|
|
|
|
%span.help-block About yourself in fewer than 250 characters.
|
|
|
|
.span7.right
|
|
|
|
%p.alert-message.block-message
|
|
|
|
%strong Tip:
|
|
|
|
You can change your avatar at gravatar.com
|
2012-01-26 23:46:32 +00:00
|
|
|
|
2012-02-11 17:56:18 +00:00
|
|
|
.actions
|
|
|
|
= f.submit 'Save', :class => "primary btn"
|
2011-10-19 22:34:05 +00:00
|
|
|
|
2012-03-23 23:01:36 +00:00
|
|
|
-#= link_to "New project", new_project_path, :class => "btn small padded"
|
|
|
|
-#= link_to "New public key", new_key_path, :class => "btn small"
|