Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.html.haml « impersonation_tokens « admin « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2c526bb38d82c962ec5c662e68881657844fd559 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
- add_to_breadcrumbs _('Users'), admin_users_path
- breadcrumb_title @user.name
- page_title _('Impersonation Tokens'), @user.name, _('Users')
- type = _('impersonation token')
- type_plural = _('impersonation tokens')

= render 'admin/users/head'

.row.gl-mt-3
  .col-lg-12
    - if @new_impersonation_token
      = render 'shared/access_tokens/created_container',
        type: type,
        new_token_value: @new_impersonation_token

    = render 'shared/access_tokens/form',
        type: type,
        title: _('Add an impersonation token'),
        path: admin_user_impersonation_tokens_path,
        impersonation: true,
        token: @impersonation_token,
        scopes: @scopes,
        help_path: help_page_path('api/index', anchor: 'impersonation-tokens')

    = render 'shared/access_tokens/table',
        type: type,
        type_plural: type_plural,
        impersonation: true,
        active_tokens: @active_impersonation_tokens,
        revoke_route_helper: ->(token) { revoke_admin_user_impersonation_token_path(token.user, token) }