From dd136858f1ea40ad3c94191d647487fa4f31926c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 18 Oct 2024 20:33:49 +0200 Subject: Adding upstream version 9.0.0. Signed-off-by: Daniel Baumann --- templates/user/settings/applications.tmpl | 113 ++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 templates/user/settings/applications.tmpl (limited to 'templates/user/settings/applications.tmpl') diff --git a/templates/user/settings/applications.tmpl b/templates/user/settings/applications.tmpl new file mode 100644 index 0000000..04d4dcd --- /dev/null +++ b/templates/user/settings/applications.tmpl @@ -0,0 +1,113 @@ +{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings applications")}} +
+

+ {{ctx.Locale.Tr "settings.manage_access_token"}} +

+
+
+
+ {{ctx.Locale.Tr "settings.tokens_desc"}} +
+ {{range .Tokens}} +
+
+ + {{svg "fontawesome-send" 32}} + +
+
+
+ {{.Name}} +

+ {{ctx.Locale.Tr "settings.repo_and_org_access"}}: + {{if .DisplayPublicOnly}} + {{ctx.Locale.Tr "settings.permissions_public_only"}} + {{else}} + {{ctx.Locale.Tr "settings.permissions_access_all"}} + {{end}} +

+

{{ctx.Locale.Tr "settings.permissions_list"}}

+
    + {{range .Scope.StringSlice}} + {{if (ne . $.AccessTokenScopePublicOnly)}} +
  • {{.}}
  • + {{end}} + {{end}} +
+
+
+

{{ctx.Locale.Tr "settings.added_on" (DateTime "short" .CreatedUnix)}} — {{svg "octicon-info"}} {{if .HasUsed}}{{ctx.Locale.Tr "settings.last_used"}} {{DateTime "short" .UpdatedUnix}}{{else}}{{ctx.Locale.Tr "settings.no_activity"}}{{end}}

+
+
+
+ +
+
+ {{end}} +
+
+
+
+ {{ctx.Locale.Tr "settings.generate_new_token"}} +
+
+ {{.CsrfTokenHtml}} +
+ + +
+
+ + + +
+
+ + {{ctx.Locale.Tr "settings.select_permissions"}} + +

+

{{ctx.Locale.Tr "settings.access_token_desc" (HTMLFormat `href="%s/api/swagger" target="_blank"` AppSubUrl) (`href="https://forgejo.org/docs/latest/user/token-scope/" target="_blank"`|SafeHTML)}}

+

+
+
+ +
{{/* Fomantic ".ui.form .warning.message" is hidden by default, so put the warning message out of the form*/}} +
+ {{ctx.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" .}} -- cgit v1.2.3