{{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}}
{{if not .IsPrimary}}
{{if .CanBePrimary}}
{{end}}
{{end}}
{{if not .IsActivated}}
{{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}}
{{end}}
{{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}}