%td=link_to"Revoke",revoke_admin_user_impersonation_token_path(id: impersonation_token.id,user_id: impersonation_token.user.username),method: :put,class: "btn btn-danger pull-right",data: {confirm: "Are you sure you want to revoke this impersonation token? This action cannot be undone."}
%td=link_to"Revoke",revoke_profile_personal_access_token_path(token),method: :put,class: "btn btn-danger pull-right",data: {confirm: "Are you sure you want to revoke this token? This action cannot be undone."}
-else
.settings-message.text-center
You don't have any active tokens yet.
%hr
%h5 Inactive Personal Access Tokens (#{@inactive_personal_access_tokens.length})
%td=link_to"Revoke",path,method: :put,class: "btn btn-danger pull-right",data: {confirm: "Are you sure you want to revoke this #{type} Token? This action cannot be undone."}
Impersonation Tokens are a type of Personal Access Token that can only be created by an admin for a specific user. These can be used by automated tools
to authenticate with the API as a specific user, as a better alternative to using the user's password or private token directly, which may change over time,
and to using the [Sudo](#sudo) feature, which requires the tool to know an admin's password or private token, which can change over time as well and are extremely powerful.
For more information about the usage please refer to the [Users](users.md) page
## Pagination
Sometimes the returned result will span across many pages. When listing