2012-12-15 01:16:25 +01:00
|
|
|
- if Gitlab.config.omniauth.enabled
|
2012-09-14 18:13:25 +02:00
|
|
|
%fieldset
|
2012-11-21 06:14:05 +01:00
|
|
|
%legend Social Accounts
|
2012-09-14 18:13:25 +02:00
|
|
|
.oauth_select_holder
|
|
|
|
%p.hint Tip: Click on icon to activate sigin with one of the following services
|
|
|
|
- User.omniauth_providers.each do |provider|
|
|
|
|
%span{class: oauth_active_class(provider) }
|
|
|
|
= link_to authbutton(provider, 32), omniauth_authorize_path(User, provider)
|
|
|
|
|
|
|
|
|
2012-11-23 05:11:09 +01:00
|
|
|
|
2012-09-14 18:13:25 +02:00
|
|
|
%fieldset
|
|
|
|
%legend
|
2012-11-21 06:14:05 +01:00
|
|
|
Private token
|
2013-01-30 15:40:43 +01:00
|
|
|
%span.cred.pull-right
|
2012-11-21 06:14:05 +01:00
|
|
|
keep it secret!
|
2012-09-14 18:13:25 +02:00
|
|
|
.padded
|
2012-12-02 12:29:24 +01:00
|
|
|
= form_for @user, url: reset_private_token_profile_path, method: :put do |f|
|
2012-09-14 18:13:25 +02:00
|
|
|
.data
|
|
|
|
%p.slead
|
|
|
|
Private token used to access application resources without authentication.
|
|
|
|
%br
|
|
|
|
It can be used for atom feed or API
|
|
|
|
%p.cgray
|
|
|
|
- if current_user.private_token
|
|
|
|
= text_field_tag "token", current_user.private_token, class: "xxlarge large_text"
|
2013-01-29 21:18:19 +01:00
|
|
|
= f.submit 'Reset', confirm: "Are you sure?", class: "btn btn-primary btn-build-token"
|
2012-09-14 18:13:25 +02:00
|
|
|
- else
|
|
|
|
%span You don`t have one yet. Click generate to fix it.
|
|
|
|
= f.submit 'Generate', class: "btn success btn-build-token"
|
|
|
|
|
|
|
|
%fieldset
|
2012-11-21 06:14:05 +01:00
|
|
|
%legend Password
|
2012-12-02 12:29:24 +01:00
|
|
|
= form_for @user, url: update_password_profile_path, method: :put do |f|
|
2012-09-14 18:13:25 +02:00
|
|
|
.padded
|
|
|
|
%p.slead After successful password update you will be redirected to login page where you should login with new password
|
|
|
|
-if @user.errors.any?
|
2013-01-30 15:53:18 +01:00
|
|
|
.alert.alert-error
|
2012-09-14 18:13:25 +02:00
|
|
|
%ul
|
|
|
|
- @user.errors.full_messages.each do |msg|
|
|
|
|
%li= msg
|
|
|
|
|
|
|
|
.clearfix
|
|
|
|
= f.label :password
|
2012-11-28 04:14:05 +01:00
|
|
|
.input= f.password_field :password, required: true
|
2012-09-14 18:13:25 +02:00
|
|
|
.clearfix
|
|
|
|
= f.label :password_confirmation
|
2012-11-23 05:11:09 +01:00
|
|
|
.input
|
2012-11-28 04:14:05 +01:00
|
|
|
= f.password_field :password_confirmation, required: true
|
2012-11-23 05:11:09 +01:00
|
|
|
.clearfix
|
|
|
|
.input
|
2013-01-29 21:18:19 +01:00
|
|
|
= f.submit 'Save password', class: "btn btn-save"
|
2012-09-14 18:13:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2013-01-30 21:14:34 +01:00
|
|
|
- if current_user.can_change_username?
|
|
|
|
%fieldset.update-username
|
|
|
|
%legend
|
|
|
|
Username
|
|
|
|
%small.cred.pull-right
|
|
|
|
Changing your username can have unintended side effects!
|
|
|
|
= form_for @user, url: update_username_profile_path, method: :put, remote: true do |f|
|
|
|
|
.padded
|
|
|
|
= f.label :username
|
|
|
|
.input
|
|
|
|
= f.text_field :username, required: true
|
|
|
|
|
|
|
|
%span.loading-gif.hide= image_tag "ajax_loader.gif"
|
|
|
|
%span.update-success.cgreen.hide
|
|
|
|
%i.icon-ok
|
|
|
|
Saved
|
|
|
|
%span.update-failed.cred.hide
|
|
|
|
%i.icon-remove
|
|
|
|
Failed
|
|
|
|
%ul.cred
|
|
|
|
%li It will change web url for personal projects.
|
|
|
|
%li It will change the git path to repositories for personal projects.
|
|
|
|
.input
|
|
|
|
= f.submit 'Save username', class: "btn btn-save"
|
2012-09-14 18:13:25 +02:00
|
|
|
|
2013-02-06 12:44:09 +01:00
|
|
|
- if Gitlab.config.gitlab.signup_enabled
|
2013-02-11 13:12:41 +01:00
|
|
|
%fieldset.remove-account
|
2013-02-06 12:44:09 +01:00
|
|
|
%legend
|
|
|
|
Remove account
|
|
|
|
%small.cred.pull-right
|
|
|
|
Before removing the account you must remove all projects!
|
2013-01-30 21:14:34 +01:00
|
|
|
= link_to 'Delete account', user_registration_path, confirm: "REMOVE #{current_user.name}? Are you sure?", method: :delete, class: "btn btn-remove delete-key btn-small pull-right"
|