From 65aa53fc52ff15efe54df4147564828d535837f8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 11 Oct 2024 12:27:00 +0200 Subject: Adding upstream version 8.0.3. Signed-off-by: Daniel Baumann --- templates/user/settings/account.tmpl | 180 +++++++++++++++++++++++++++++++++++ 1 file changed, 180 insertions(+) create mode 100644 templates/user/settings/account.tmpl (limited to 'templates/user/settings/account.tmpl') diff --git a/templates/user/settings/account.tmpl b/templates/user/settings/account.tmpl new file mode 100644 index 00000000..a97136f4 --- /dev/null +++ b/templates/user/settings/account.tmpl @@ -0,0 +1,180 @@ +{{template "user/settings/layout_head" (dict "ctxData" . "pageClass" "user settings account")}} +
+

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

+
+ {{if or (.SignedUser.IsLocal) (.SignedUser.IsOAuth2)}} +
+ {{template "base/disable_form_autofill"}} + {{.CsrfTokenHtml}} + {{if .SignedUser.IsPasswordSet}} +
+ + +
+ {{end}} +
+ + +
+
+ + +
+ +
+ + {{ctx.Locale.Tr "auth.forgot_password"}} +
+
+ {{else}} +
+

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

+
+ {{end}} +
+ +

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

+
+
+ {{if $.EnableNotifyMail}} +
+
{{ctx.Locale.Tr "settings.email_desc"}}
+
+ {{$.CsrfTokenHtml}} + +
+ + +
+
+
+ {{end}} + {{range .Emails}} +
+ {{if not .IsPrimary}} +
+ +
+ {{if .CanBePrimary}} +
+
+ {{$.CsrfTokenHtml}} + + + +
+
+ {{end}} + {{end}} + {{if not .IsActivated}} +
+
+ {{$.CsrfTokenHtml}} + + + {{if $.ActivationsPending}} + + {{else}} + + {{end}} +
+
+ {{end}} +
+ {{.Email}} + {{if .IsPrimary}} +
{{ctx.Locale.Tr "settings.primary"}}
+ {{end}} + {{if .IsActivated}} +
{{ctx.Locale.Tr "settings.activated"}}
+ {{else}} +
{{ctx.Locale.Tr "settings.requires_activation"}}
+ {{end}} +
+
+ {{end}} +
+
+
+
+ {{.CsrfTokenHtml}} +
+ + +
+ +
+ {{/* if ActivationsPending is false, then CanAddEmails must be true, so if CanAddEmails is false, ActivationsPending must be true */}} + {{if not .CanAddEmails}} +
{{ctx.Locale.Tr "settings.can_not_add_email_activations_pending"}}
+ {{end}} +
+ + {{if not ($.UserDisabledFeatures.Contains "deletion")}} +

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

+
+
+

{{svg "octicon-alert"}} {{ctx.Locale.Tr "settings.delete_prompt"}}

+ {{if .UserDeleteWithComments}} +

{{ctx.Locale.Tr "settings.delete_with_all_comments" .UserDeleteWithCommentsMaxTime}}

+ {{end}} +
+
+ {{template "base/disable_form_autofill"}} + {{.CsrfTokenHtml}} +
+ + +
+
+ +
+
+ +
+ {{end}} +
+ + + +{{template "user/settings/layout_footer" .}} -- cgit v1.2.3