debian-mirror-gitlab/app/views/admin/impersonation_tokens/index.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
1 KiB
Text
Raw Normal View History

2021-11-11 11:23:49 +05:30
- add_to_breadcrumbs _('Users'), admin_users_path
2018-11-18 11:00:15 +05:30
- breadcrumb_title @user.name
2020-05-24 23:13:21 +05:30
- page_title _('Impersonation Tokens'), @user.name, _('Users')
- type = _('impersonation token')
- type_plural = _('impersonation tokens')
2017-08-17 22:00:37 +05:30
= render 'admin/users/head'
2020-07-28 23:09:34 +05:30
.row.gl-mt-3
2017-08-17 22:00:37 +05:30
.col-lg-12
2018-12-05 23:21:45 +05:30
- if @new_impersonation_token
2020-05-24 23:13:21 +05:30
= render 'shared/access_tokens/created_container',
type: type,
new_token_value: @new_impersonation_token
2018-12-05 23:21:45 +05:30
2020-05-24 23:13:21 +05:30
= render 'shared/access_tokens/form',
type: type,
title: _('Add an impersonation token'),
path: admin_user_impersonation_tokens_path,
impersonation: true,
token: @impersonation_token,
2021-09-30 23:02:18 +05:30
scopes: @scopes,
help_path: help_page_path('api/index', anchor: 'impersonation-tokens')
2017-08-17 22:00:37 +05:30
2020-05-24 23:13:21 +05:30
= 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) }