1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
.row
.span8
.profile_avatar_holder
= image_tag gravatar_icon(@user.email, 90), :class => "styled_image"
%h3
= @user.name
%br
%small
= @user.email
.span4.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
%hr
= form_for @user, :url => profile_update_path, :method => :put, :html => { :class => "edit_user form-horizontal" } do |f|
-if @user.errors.any?
%div.alert-message.block-message.error
%ul
- @user.errors.full_messages.each do |msg|
%li= msg
.row
.span7
.control-group
= f.label :name, :class => "control-label"
.controls
= f.text_field :name, :class => "input-xlarge"
%span.help-block Enter youre name, so people you know can recognize you.
.control-group
= f.label :email, :class => "control-label"
.controls
= f.text_field :email, :class => "input-xlarge"
%span.help-block We also use email for avatar detection
.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
%span.help-block About yourself in fewer than 250 characters.
.span5.right
%p.alert-message.block-message
%strong Tip:
You can change your avatar at gravatar.com
.form-actions
= f.submit 'Save', :class => "btn-primary btn"
-#= link_to "New project", new_project_path, :class => "btn small padded"
-#= link_to "New public key", new_key_path, :class => "btn small"
|