2012-04-24 20:49:34 +02:00
|
|
|
.profile_avatar_holder
|
2012-08-11 00:07:50 +02:00
|
|
|
= image_tag gravatar_icon(@user.email, 90), class: "styled_image"
|
2012-06-30 23:35:24 +02:00
|
|
|
%h3.page_title
|
2012-04-24 20:49:34 +02:00
|
|
|
= @user.name
|
|
|
|
%br
|
|
|
|
%small
|
|
|
|
= @user.email
|
|
|
|
|
|
|
|
|
2012-01-29 22:59:12 +01:00
|
|
|
%hr
|
2011-10-20 00:34:05 +02:00
|
|
|
|
2012-08-11 00:07:50 +02:00
|
|
|
= form_for @user, url: profile_update_path, method: :put, html: { class: "edit_user form-horizontal" } do |f|
|
2012-01-27 00:46:32 +01:00
|
|
|
-if @user.errors.any?
|
|
|
|
%div.alert-message.block-message.error
|
|
|
|
%ul
|
|
|
|
- @user.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
2012-03-24 00:01:36 +01:00
|
|
|
.row
|
2012-04-10 07:51:08 +02:00
|
|
|
.span7
|
|
|
|
.control-group
|
2012-08-11 00:07:50 +02:00
|
|
|
= f.label :name, class: "control-label"
|
2012-04-10 07:51:08 +02:00
|
|
|
.controls
|
2012-08-11 00:07:50 +02:00
|
|
|
= f.text_field :name, class: "input-xlarge"
|
2012-04-19 13:01:58 +02:00
|
|
|
%span.help-block Enter your name, so people you know can recognize you.
|
2012-04-10 07:51:08 +02:00
|
|
|
.control-group
|
2012-08-11 00:07:50 +02:00
|
|
|
= f.label :email, class: "control-label"
|
2012-04-10 07:51:08 +02:00
|
|
|
.controls
|
2012-08-11 00:07:50 +02:00
|
|
|
= f.text_field :email, class: "input-xlarge"
|
2012-04-19 13:01:58 +02:00
|
|
|
%span.help-block We also use email for avatar detection.
|
2012-04-24 20:49:34 +02:00
|
|
|
|
|
|
|
%hr
|
2012-04-10 07:51:08 +02:00
|
|
|
.control-group
|
2012-08-11 00:07:50 +02:00
|
|
|
= f.label :skype, class: "control-label"
|
|
|
|
.controls= f.text_field :skype, class: "input-xlarge"
|
2012-04-10 07:51:08 +02:00
|
|
|
.control-group
|
2012-08-11 00:07:50 +02:00
|
|
|
= f.label :linkedin, class: "control-label"
|
|
|
|
.controls= f.text_field :linkedin, class: "input-xlarge"
|
2012-04-10 07:51:08 +02:00
|
|
|
.control-group
|
2012-08-11 00:07:50 +02:00
|
|
|
= f.label :twitter, class: "control-label"
|
|
|
|
.controls= f.text_field :twitter, class: "input-xlarge"
|
2012-04-10 07:51:08 +02:00
|
|
|
.control-group
|
2012-08-11 00:07:50 +02:00
|
|
|
= f.label :bio, class: "control-label"
|
2012-04-10 07:51:08 +02:00
|
|
|
.controls
|
2012-08-11 00:07:50 +02:00
|
|
|
= f.text_area :bio, rows: 6, class: "input-xlarge", maxlength: 250
|
2012-04-19 13:01:58 +02:00
|
|
|
%span.help-block Tell us about yourself in fewer than 250 characters.
|
2012-04-10 07:51:08 +02:00
|
|
|
.span5.right
|
2012-04-24 20:49:34 +02:00
|
|
|
|
|
|
|
%p.alert.alert-info
|
2012-03-24 00:01:36 +01:00
|
|
|
%strong Tip:
|
|
|
|
You can change your avatar at gravatar.com
|
2012-01-27 00:46:32 +01:00
|
|
|
|
2012-04-24 20:49:34 +02:00
|
|
|
%h4
|
2012-06-04 00:37:27 +02:00
|
|
|
Personal projects:
|
2012-04-24 20:49:34 +02:00
|
|
|
%small.right
|
|
|
|
%span= current_user.my_own_projects.count
|
2012-06-04 00:37:27 +02:00
|
|
|
of
|
2012-04-24 20:49:34 +02:00
|
|
|
%span= current_user.projects_limit
|
|
|
|
.progress
|
2012-08-11 00:07:50 +02:00
|
|
|
.bar{style: "width: #{current_user.projects_limit_percent}%;"}
|
2012-04-24 20:49:34 +02:00
|
|
|
|
|
|
|
%h4
|
|
|
|
SSH public keys:
|
|
|
|
%small.right
|
2012-06-20 17:16:56 +02:00
|
|
|
%span= link_to current_user.keys.count, keys_path
|
2012-04-24 20:49:34 +02:00
|
|
|
|
2012-08-11 00:07:50 +02:00
|
|
|
= link_to "Add Public Key", new_key_path, class: "btn small right"
|
2012-04-24 20:49:34 +02:00
|
|
|
|
2012-04-10 07:51:08 +02:00
|
|
|
.form-actions
|
2012-08-11 00:07:50 +02:00
|
|
|
= f.submit 'Save', class: "btn-primary btn"
|