%
# Copyright (C) 2011 - present Instructure, Inc.
#
# This file is part of Canvas.
#
# Canvas is free software: you can redistribute it and/or modify it under
# the terms of the GNU Affero General Public License as published by the Free
# Software Foundation, version 3 of the License.
#
# Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
# details.
#
# You should have received a copy of the GNU Affero General Public License along
# with this program. If not, see .
%>
<% access_token ||= nil %>
<%= access_token&.app_name || t(:default_app_name, "No App") %> |
<% if @current_user&.account.feature_enabled?(:admin_manage_access_tokens) %>
<%= access_token&.localized_workflow_state %>
<% if access_token&.pending? && @real_current_user.nil? %>
(<%= t("activate") %>)
<% else %>
<% end %>
|
<% end %>
<%= access_token&.purpose || nbsp %> |
<%= before_label(:token_expires, "Expires") %> |
<%= datetime_string(access_token&.permanent_expires_at) || t('profile.token_never_expires', 'never') %> |
<%= before_label(:token_last_used, "Last Used") %> |
<%= datetime_string(access_token&.last_used_at) || '--' %> |
|
" class="show_token_link"><%= t('links.token_details', "details") %>
|
<% if access_token.nil? || access_token.grants_right?(logged_in_user, :delete) %>
" title="<%= t('titles.delete_this_token', "Delete this Token") %>">
<% end %>
|