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

{{.locale.Tr "settings.password"}}

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

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

{{end}}

{{.locale.Tr "settings.manage_emails"}}

{{.CsrfTokenHtml}}
{{/* if ActivationsPending is false, then CanAddEmails must be true, so if CanAddEmails is false, ActivationsPending must be true */}} {{if not .CanAddEmails}}
{{.locale.Tr "settings.can_not_add_email_activations_pending"}}
{{end}}

{{.locale.Tr "settings.delete_account"}}

{{svg "octicon-alert"}} {{.locale.Tr "settings.delete_prompt" | Str2html}}

{{if .UserDeleteWithComments}}

{{.locale.Tr "settings.delete_with_all_comments" .UserDeleteWithCommentsMaxTime | Str2html}}

{{end}}
{{template "base/disable_form_autofill"}} {{.CsrfTokenHtml}}
{{.locale.Tr "auth.forgot_password"}}
{{template "user/settings/layout_footer" .}}