2012-03-23 23:01:36 +00:00
|
|
|
.row
|
2012-04-10 05:51:08 +00:00
|
|
|
.span8
|
2012-03-23 23:01:36 +00:00
|
|
|
.profile_avatar_holder
|
|
|
|
= image_tag gravatar_icon(@user.email, 90), :class => "styled_image"
|
|
|
|
%h3
|
|
|
|
= @user.name
|
|
|
|
%br
|
|
|
|
%small
|
|
|
|
= @user.email
|
|
|
|
|
2012-04-10 05:51:08 +00:00
|
|
|
.span4.right
|
2012-03-23 23:01:36 +00:00
|
|
|
%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-04-10 05:51:08 +00:00
|
|
|
= form_for @user, :url => profile_update_path, :method => :put, :html => { :class => "edit_user form-horizontal" } do |f|
|
2012-01-26 23:46:32 +00:00
|
|
|
-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
|
2012-04-10 05:51:08 +00:00
|
|
|
.span7
|
|
|
|
.control-group
|
|
|
|
= f.label :name, :class => "control-label"
|
|
|
|
.controls
|
|
|
|
= f.text_field :name, :class => "input-xlarge"
|
2012-04-19 11:01:58 +00:00
|
|
|
%span.help-block Enter your name, so people you know can recognize you.
|
2012-04-10 05:51:08 +00:00
|
|
|
.control-group
|
|
|
|
= f.label :email, :class => "control-label"
|
|
|
|
.controls
|
|
|
|
= f.text_field :email, :class => "input-xlarge"
|
2012-04-19 11:01:58 +00:00
|
|
|
%span.help-block We also use email for avatar detection.
|
2012-04-10 05:51:08 +00:00
|
|
|
.control-group
|
|
|
|
= f.label :skype, :class => "control-label"
|
|
|
|
.controls= f.text_field :skype, :class => "input-xlarge"
|
|
|
|
.control-group
|
|
|
|
= f.label :linkedin, :class => "control-label"
|
|
|
|
.controls= f.text_field :linkedin, :class => "input-xlarge"
|
|
|
|
.control-group
|
|
|
|
= f.label :twitter, :class => "control-label"
|
|
|
|
.controls= f.text_field :twitter, :class => "input-xlarge"
|
|
|
|
.control-group
|
|
|
|
= f.label :bio, :class => "control-label"
|
|
|
|
.controls
|
|
|
|
= f.text_area :bio, :rows => 6, :class => "input-xlarge", :maxlength => 250
|
2012-04-19 11:01:58 +00:00
|
|
|
%span.help-block Tell us about yourself in fewer than 250 characters.
|
2012-04-10 05:51:08 +00:00
|
|
|
.span5.right
|
2012-03-23 23:01:36 +00:00
|
|
|
%p.alert-message.block-message
|
|
|
|
%strong Tip:
|
|
|
|
You can change your avatar at gravatar.com
|
2012-01-26 23:46:32 +00:00
|
|
|
|
2012-04-10 05:51:08 +00:00
|
|
|
.form-actions
|
|
|
|
= f.submit 'Save', :class => "btn-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"
|