36 lines
1.5 KiB
Text
36 lines
1.5 KiB
Text
- breadcrumb_title s_('AccessTokens|Access Tokens')
|
|
- page_title s_('AccessTokens|Personal Access Tokens')
|
|
- type = _('personal access token')
|
|
- type_plural = _('personal access tokens')
|
|
- @content_class = 'limit-container-width' unless fluid_layout
|
|
|
|
.row.gl-mt-3.js-search-settings-section
|
|
.col-lg-4.profile-settings-sidebar
|
|
%h4.gl-mt-0
|
|
= page_title
|
|
%p
|
|
= s_('AccessTokens|You can generate a personal access token for each application you use that needs access to the GitLab API.')
|
|
%p
|
|
= 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.')
|
|
|
|
.col-lg-8
|
|
- if @new_personal_access_token
|
|
= render 'shared/access_tokens/created_container',
|
|
type: type,
|
|
new_token_value: @new_personal_access_token
|
|
|
|
= render 'shared/access_tokens/form',
|
|
type: type,
|
|
path: profile_personal_access_tokens_path,
|
|
token: @personal_access_token,
|
|
scopes: @scopes,
|
|
help_path: help_page_path('user/profile/personal_access_tokens.md', anchor: 'personal-access-token-scopes')
|
|
|
|
= render 'shared/access_tokens/table',
|
|
type: type,
|
|
type_plural: type_plural,
|
|
active_tokens: @active_personal_access_tokens,
|
|
revoke_route_helper: ->(token) { revoke_profile_personal_access_token_path(token) }
|
|
|
|
#js-tokens-app{ data: { tokens_data: tokens_app_data } }
|