debian-mirror-gitlab/app/views/profiles/personal_access_tokens/index.html.haml

32 lines
1.5 KiB
Text
Raw Normal View History

2016-06-22 15:30:34 +05:30
- page_title "Personal Access Tokens"
2017-09-10 17:25:29 +05:30
- @content_class = "limit-container-width" unless fluid_layout
2016-08-24 12:49:21 +05:30
= render 'profiles/head'
2016-06-22 15:30:34 +05:30
.row.prepend-top-default
2017-09-10 17:25:29 +05:30
.col-lg-4.profile-settings-sidebar
2016-06-22 15:30:34 +05:30
%h4.prepend-top-0
= page_title
%p
You can generate a personal access token for each application you use that needs access to the GitLab API.
2016-09-13 17:45:13 +05:30
%p
You can also use personal access tokens to authenticate against Git over HTTP.
They are the only accepted password when you have Two-Factor Authentication (2FA) enabled.
2017-09-10 17:25:29 +05:30
.col-lg-8
2016-06-22 15:30:34 +05:30
- if flash[:personal_access_token]
.created-personal-access-token-container
%h5.prepend-top-0
Your New Personal Access Token
.form-group
2017-09-10 17:25:29 +05:30
= text_field_tag 'created-personal-access-token', flash[:personal_access_token], readonly: true, class: "form-control js-select-on-focus", 'aria-describedby' => "created-personal-access-token-help-block"
2017-08-17 22:00:37 +05:30
= clipboard_button(text: flash[:personal_access_token], title: "Copy personal access token to clipboard", placement: "left")
2016-06-22 15:30:34 +05:30
%span#created-personal-access-token-help-block.help-block.text-danger Make sure you save it - you won't be able to access it again.
%hr
2017-08-17 22:00:37 +05:30
= render "shared/personal_access_tokens_form", path: profile_personal_access_tokens_path, impersonation: false, token: @personal_access_token, scopes: @scopes
2016-06-22 15:30:34 +05:30
2017-08-17 22:00:37 +05:30
= render "shared/personal_access_tokens_table", impersonation: false, active_tokens: @active_personal_access_tokens, inactive_tokens: @inactive_personal_access_tokens