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