gitlabhq/app/views/profile/show.html.haml

78 lines
2.4 KiB
Plaintext
Raw Normal View History

.profile_avatar_holder
= image_tag gravatar_icon(@user.email, 90), class: "styled_image"
%h3.page_title
= @user.name
%br
%small
= @user.email
%hr
= 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
= f.label :name, class: "control-label"
2012-04-10 07:51:08 +02:00
.controls
= f.text_field :name, class: "input-xlarge"
%span.help-block Enter your name, so people you know can recognize you.
2012-04-10 07:51:08 +02:00
.control-group
= f.label :email, class: "control-label"
2012-04-10 07:51:08 +02:00
.controls
= f.text_field :email, class: "input-xlarge"
%span.help-block We also use email for avatar detection.
%hr
2012-04-10 07:51:08 +02:00
.control-group
= f.label :skype, class: "control-label"
.controls= f.text_field :skype, class: "input-xlarge"
2012-04-10 07:51:08 +02:00
.control-group
= f.label :linkedin, class: "control-label"
.controls= f.text_field :linkedin, class: "input-xlarge"
2012-04-10 07:51:08 +02:00
.control-group
= f.label :twitter, class: "control-label"
.controls= f.text_field :twitter, class: "input-xlarge"
2012-04-10 07:51:08 +02:00
.control-group
= f.label :bio, class: "control-label"
2012-04-10 07:51:08 +02:00
.controls
= f.text_area :bio, rows: 6, class: "input-xlarge", maxlength: 250
%span.help-block Tell us about yourself in fewer than 250 characters.
2012-04-10 07:51:08 +02:00
.span5.right
-unless Gitlab.config.disable_gravatar?
%p.alert.alert-info
%strong Tip:
You can change your avatar at gravatar.com
2012-01-27 00:46:32 +01:00
2012-08-03 17:27:39 +02:00
- if Settings.omniauth.enabled && @user.provider?
%h4
Omniauth Providers:
= link_to "Change", profile_password_path, class: "btn small right"
You can login through #{@user.provider.titleize}!
= authbutton(@user.provider, 32)
%h4
Personal projects:
%small.right
%span= current_user.my_own_projects.count
of
%span= current_user.projects_limit
.progress
.bar{style: "width: #{current_user.projects_limit_percent}%;"}
%h4
SSH public keys:
%small.right
%span= link_to current_user.keys.count, keys_path
= link_to "Add Public Key", new_key_path, class: "btn small right"
2012-04-10 07:51:08 +02:00
.form-actions
= f.submit 'Save', class: "btn save-btn"