gitlab-org--gitlab-foss/app/views/profiles/show.html.haml

70 lines
2.5 KiB
Plaintext
Raw Normal View History

%h3.page-title
2013-10-09 09:30:49 +00:00
Profile settings
%p.light
This information appears on your profile.
- if current_user.ldap_user?
Some options are unavailable for LDAP accounts
%hr
2013-10-09 09:30:49 +00:00
2013-10-06 18:13:56 +00:00
= form_for @user, url: profile_path, method: :put, html: { multipart: true, class: "edit_user form-horizontal" } do |f|
2012-01-26 23:46:32 +00:00
-if @user.errors.any?
2013-01-30 14:53:18 +00:00
%div.alert.alert-error
2012-01-26 23:46:32 +00:00
%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"
2012-04-10 05:51:08 +00:00
.controls
2012-11-21 05:14:05 +00:00
= f.text_field :name, class: "input-xlarge", required: true
%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"
2012-04-10 05:51:08 +00:00
.controls
2012-11-21 05:14:05 +00:00
= f.text_field :email, class: "input-xlarge", required: true
2013-10-15 08:19:19 +00:00
- if @user.unconfirmed_email.present?
%span.help-block
We sent confirmation email to
%strong #{@user.unconfirmed_email}
- else
%span.help-block We also use email for avatar detection if no avatar is uploaded.
2013-01-25 14:36:14 +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"
2013-10-06 18:13:56 +00:00
.control-group
2013-10-09 09:30:49 +00:00
= f.label :bio, class: "control-label"
2013-10-06 18:13:56 +00:00
.controls
2013-10-09 09:30:49 +00:00
= f.text_area :bio, rows: 6, class: "input-xlarge", maxlength: 250
%span.help-block Tell us about yourself in fewer than 250 characters.
.span5.pull-right
.light-well
= image_tag avatar_icon(@user.email, 160), alt: '', class: 'avatar s160'
.clearfix
2013-10-06 18:13:56 +00:00
.profile-avatar-form-option
2013-10-09 09:30:49 +00:00
%p.light
You can upload an avatar here
%br
or change it at #{link_to "gravatar.com", "http://gravatar.com"}
%hr
2013-10-06 18:13:56 +00:00
%a.choose-btn.btn.btn-small.js-choose-user-avatar-button
%i.icon-paper-clip
%span Choose File ...
 
%span.file_name.js-avatar-filename File name...
= f.file_field :avatar, class: "js-user-avatar-input hide"
%span.help-block The maximum file size allowed is 100KB.
2012-04-10 05:51:08 +00:00
.form-actions
= f.submit 'Save changes', class: "btn btn-save"