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

{{ctx.Locale.Tr "settings.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}}

{{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}}
{{template "user/settings/layout_footer" .}}