debian-mirror-gitlab/app/views/projects/settings/access_tokens/index.html.haml

36 lines
1.3 KiB
Text
Raw Normal View History

2020-05-24 23:13:21 +05:30
- breadcrumb_title s_('AccessTokens|Access Tokens')
- page_title _('Project Access Tokens')
- type = _('project access token')
- type_plural = _('project access tokens')
- @content_class = 'limit-container-width' unless fluid_layout
2020-07-28 23:09:34 +05:30
.row.gl-mt-3
2020-05-24 23:13:21 +05:30
.col-lg-4.profile-settings-sidebar
2020-06-23 00:09:42 +05:30
%h4.gl-mt-0
2020-05-24 23:13:21 +05:30
= page_title
%p
= _('You can generate an access token scoped to this project for each application to use the GitLab API.')
2020-10-24 23:57:45 +05:30
-# Commented out until https://gitlab.com/gitlab-org/gitlab/-/issues/219551 is fixed
-# %p
-# = _('You can also use project access tokens to authenticate against Git over HTTP.')
2020-05-24 23:13:21 +05:30
.col-lg-8
- if @new_project_access_token
= render 'shared/access_tokens/created_container',
type: type,
new_token_value: @new_project_access_token
= render 'shared/access_tokens/form',
type: type,
path: project_settings_access_tokens_path(@project),
token: @project_access_token,
scopes: @scopes,
prefix: :project_access_token
= render 'shared/access_tokens/table',
active_tokens: @active_project_access_tokens,
type: type,
type_plural: type_plural,
revoke_route_helper: ->(token) { revoke_namespace_project_settings_access_token_path(id: token) },
no_active_tokens_message: _('This project has no active access tokens.')