{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings applications")}}

{{.locale.Tr "settings.manage_access_token"}}

{{.locale.Tr "settings.tokens_desc"}}
{{range .Tokens}}
{{svg "fontawesome-send" 32}}
{{.Name}}

{{$.locale.Tr "settings.repo_and_org_access"}}: {{if .DisplayPublicOnly}} {{$.locale.Tr "settings.permissions_public_only"}} {{else}} {{$.locale.Tr "settings.permissions_access_all"}} {{end}}

{{$.locale.Tr "settings.permissions_list"}}

    {{range .Scope.StringSlice}} {{if (ne . $.AccessTokenScopePublicOnly)}}
  • {{.}}
  • {{end}} {{end}}
{{$.locale.Tr "settings.added_on" (DateTime "short" .CreatedUnix) | Safe}} — {{svg "octicon-info"}} {{if .HasUsed}}{{$.locale.Tr "settings.last_used"}} {{DateTime "short" .UpdatedUnix}}{{else}}{{$.locale.Tr "settings.no_activity"}}{{end}}
{{end}}
{{.locale.Tr "settings.generate_new_token"}}
{{.CsrfTokenHtml}}
{{.locale.Tr "settings.select_permissions"}}

{{$.locale.Tr "settings.access_token_desc" (printf `href="/api/swagger" target="_blank"`) (printf `href="https://docs.gitea.com/development/oauth2-provider#scopes" target="_blank"`) | Str2html}}

{{.locale.Tr "settings.at_least_one_permission"}}
{{if .EnableOAuth2}} {{template "user/settings/grants_oauth2" .}} {{template "user/settings/applications_oauth2" .}} {{end}}
{{template "user/settings/layout_footer" .}}