{{ define "user/settings/fragments/emailListing" }} {{ $root := index . 0 }} {{ $email := index . 1 }}
{{ i "mail" "w-4 h-4 text-gray-500 dark:text-gray-400" }} {{ $email.Address }}
{{ if $email.Verified }} verified {{ else }} unverified {{ end }} {{ if $email.Primary }} primary {{ end }}
added {{ template "repo/fragments/time" $email.CreatedAt }}
{{ if not $email.Verified }} {{ end }} {{ if and (not $email.Primary) $email.Verified }} {{ end }} {{ if not $email.Primary }} {{ end }}
{{ end }}