2012-04-24 14:49:34 -04:00
|
|
|
.profile_avatar_holder
|
2012-11-21 00:14:05 -05:00
|
|
|
= image_tag gravatar_icon(@user.email, 90)
|
2012-06-30 17:35:24 -04:00
|
|
|
%h3.page_title
|
2012-04-24 14:49:34 -04:00
|
|
|
= @user.name
|
|
|
|
%br
|
|
|
|
%small
|
|
|
|
= @user.email
|
|
|
|
|
2013-01-17 10:35:57 -05:00
|
|
|
.right
|
|
|
|
= link_to destroy_user_session_path, class: "logout", method: :delete do
|
|
|
|
%small
|
|
|
|
%i.icon-signout
|
|
|
|
Logout
|
2012-01-29 16:59:12 -05:00
|
|
|
%hr
|
2011-10-19 18:34:05 -04:00
|
|
|
|
2012-12-02 06:29:24 -05:00
|
|
|
= form_for @user, url: profile_path, method: :put, html: { class: "edit_user form-horizontal" } do |f|
|
2012-01-26 18:46:32 -05:00
|
|
|
-if @user.errors.any?
|
|
|
|
%div.alert-message.block-message.error
|
|
|
|
%ul
|
|
|
|
- @user.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
2012-03-23 19:01:36 -04:00
|
|
|
.row
|
2012-04-10 01:51:08 -04:00
|
|
|
.span7
|
|
|
|
.control-group
|
2012-08-10 18:07:50 -04:00
|
|
|
= f.label :name, class: "control-label"
|
2012-04-10 01:51:08 -04:00
|
|
|
.controls
|
2012-11-21 00:14:05 -05:00
|
|
|
= f.text_field :name, class: "input-xlarge", required: true
|
2012-04-19 07:01:58 -04:00
|
|
|
%span.help-block Enter your name, so people you know can recognize you.
|
2012-04-10 01:51:08 -04:00
|
|
|
.control-group
|
2012-08-10 18:07:50 -04:00
|
|
|
= f.label :email, class: "control-label"
|
2012-04-10 01:51:08 -04:00
|
|
|
.controls
|
2012-11-21 00:14:05 -05:00
|
|
|
= f.text_field :email, class: "input-xlarge", required: true
|
2012-04-19 07:01:58 -04:00
|
|
|
%span.help-block We also use email for avatar detection.
|
2013-01-25 09:36:14 -05: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
|
|
|
|
%span.help-block Tell us about yourself in fewer than 250 characters.
|
2012-04-24 14:49:34 -04:00
|
|
|
|
2012-09-12 11:56:44 -04:00
|
|
|
.span5.right
|
2012-11-21 00:14:05 -05:00
|
|
|
%fieldset.tips
|
|
|
|
%legend Tips:
|
2012-09-12 11:56:44 -04:00
|
|
|
%ul
|
2012-11-21 00:14:05 -05:00
|
|
|
%li
|
|
|
|
%p You can change your password on Account page
|
2012-12-14 20:19:21 -05:00
|
|
|
- if Gitlab.config.gravatar.enabled
|
2012-09-12 11:56:44 -04:00
|
|
|
%li
|
2012-11-21 00:14:05 -05:00
|
|
|
%p You can change your avatar at #{link_to "gravatar.com", "http://gravatar.com"}
|
2012-09-12 11:56:44 -04:00
|
|
|
|
2012-12-14 19:16:25 -05:00
|
|
|
- if Gitlab.config.omniauth.enabled && @user.provider?
|
2012-09-12 11:56:44 -04:00
|
|
|
%li
|
2012-12-02 06:29:24 -05:00
|
|
|
%p
|
2012-09-12 11:56:44 -04:00
|
|
|
You can login through #{@user.provider.titleize}!
|
2012-12-02 06:29:24 -05:00
|
|
|
= link_to "click here to change", account_profile_path
|
2013-01-25 09:25:43 -05:00
|
|
|
- if current_user.can_create_group?
|
|
|
|
%li
|
|
|
|
%p
|
|
|
|
Need a group for several dependent projects?
|
|
|
|
= link_to new_group_path, class: "btn very_small" do
|
|
|
|
Create a group
|
|
|
|
- if current_user.can_create_team?
|
|
|
|
%li
|
|
|
|
%p
|
|
|
|
Want to share a team between projects?
|
|
|
|
= link_to new_team_path, class: "btn very_small" do
|
|
|
|
Create a team
|
2012-11-21 00:14:05 -05:00
|
|
|
%fieldset
|
|
|
|
%legend
|
|
|
|
Personal projects:
|
|
|
|
%small.right
|
2013-01-02 12:32:34 -05:00
|
|
|
%span= current_user.personal_projects.count
|
2012-11-21 00:14:05 -05:00
|
|
|
of
|
|
|
|
%span= current_user.projects_limit
|
|
|
|
.padded
|
2012-09-12 01:23:20 -04:00
|
|
|
.progress
|
|
|
|
.bar{style: "width: #{current_user.projects_limit_percent}%;"}
|
2012-04-24 14:49:34 -04:00
|
|
|
|
2012-11-21 00:14:05 -05:00
|
|
|
%fieldset
|
|
|
|
%legend
|
|
|
|
SSH public keys:
|
2013-01-25 09:25:43 -05:00
|
|
|
%span.right
|
|
|
|
= link_to pluralize(current_user.keys.count, 'key'), keys_path
|
2012-11-21 00:14:05 -05:00
|
|
|
.padded
|
2012-09-12 01:23:20 -04:00
|
|
|
= link_to "Add Public Key", new_key_path, class: "btn small"
|
2012-04-24 14:49:34 -04:00
|
|
|
|
2012-04-10 01:51:08 -04:00
|
|
|
.form-actions
|
2013-01-29 15:18:19 -05:00
|
|
|
= f.submit 'Save', class: "btn btn-save"
|