2019-09-30 21:07:59 +05:30
|
|
|
- breadcrumb_title s_('AccessTokens|Access Tokens')
|
|
|
|
- page_title s_('AccessTokens|Personal Access Tokens')
|
2020-05-24 23:13:21 +05:30
|
|
|
- type = _('personal access token')
|
|
|
|
- type_plural = _('personal access tokens')
|
|
|
|
- @content_class = 'limit-container-width' unless fluid_layout
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2021-03-11 19:13:27 +05:30
|
|
|
.row.gl-mt-3.js-search-settings-section
|
2017-09-10 17:25:29 +05:30
|
|
|
.col-lg-4.profile-settings-sidebar
|
2020-06-23 00:09:42 +05:30
|
|
|
%h4.gl-mt-0
|
2016-06-22 15:30:34 +05:30
|
|
|
= page_title
|
|
|
|
%p
|
2019-09-30 21:07:59 +05:30
|
|
|
= s_('AccessTokens|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
|
2019-09-30 21:07:59 +05:30
|
|
|
= s_('AccessTokens|You can also use personal access tokens to authenticate against Git over HTTP.')
|
|
|
|
= s_('AccessTokens|They are the only accepted password when you have Two-Factor Authentication (2FA) enabled.')
|
2016-09-13 17:45:13 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
.col-lg-8
|
2022-07-23 23:45:48 +05:30
|
|
|
#js-new-access-token-app{ data: { access_token_type: type } }
|
2016-06-22 15:30:34 +05:30
|
|
|
|
2020-05-24 23:13:21 +05:30
|
|
|
= render 'shared/access_tokens/form',
|
2022-07-23 23:45:48 +05:30
|
|
|
ajax: true,
|
2020-05-24 23:13:21 +05:30
|
|
|
type: type,
|
|
|
|
path: profile_personal_access_tokens_path,
|
|
|
|
token: @personal_access_token,
|
2021-09-30 23:02:18 +05:30
|
|
|
scopes: @scopes,
|
|
|
|
help_path: help_page_path('user/profile/personal_access_tokens.md', anchor: 'personal-access-token-scopes')
|
2016-06-22 15:30:34 +05:30
|
|
|
|
2022-07-23 23:45:48 +05:30
|
|
|
#js-access-token-table-app{ data: { access_token_type: type, access_token_type_plural: type_plural, initial_active_access_tokens: @active_personal_access_tokens.to_json } }
|
2018-03-17 18:26:18 +05:30
|
|
|
|
2022-03-02 08:16:31 +05:30
|
|
|
#js-tokens-app{ data: { tokens_data: tokens_app_data } }
|