{{template "base/head" .}}
{{template "user/settings/navbar" .}}
{{template "base/alert" .}}

{{.i18n.Tr "settings.password"}}

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

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

{{end}}

{{.i18n.Tr "settings.manage_emails"}}

{{.CsrfTokenHtml}}

{{.i18n.Tr "settings.manage_themes"}}

{{.i18n.Tr "settings.delete_account"}}

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

{{ if .UserDeleteWithComments }}

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

{{ end }}
{{template "base/disable_form_autofill"}} {{.CsrfTokenHtml}}
{{.i18n.Tr "settings.confirm_delete_account"}}
{{.i18n.Tr "auth.forgot_password"}}
{{template "base/footer" .}}