2020-05-24 23:13:21 +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,
|
|
|
|
scopes: @scopes
|
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) }
|