{{ define "user/fragments/profilePopover" }} {{ $handle := resolve .UserDid }}

{{ $handle }}

{{ with .Profile }} {{ if .Pronouns }}

{{ .Pronouns }}

{{ end }} {{ end }}
{{ with .Profile }} {{ if .Description }}

{{ .Description }}

{{ end }} {{ end }} {{ if and .LoggedInUser (ne .FollowStatus.String "IsSelf") }}
{{ template "user/fragments/follow" . }} {{ template "user/fragments/vouchButton" (dict "VouchRelationship" .VouchRelationship) }}
{{ if .VouchRelationship }} {{ if .VouchRelationship.IndirectVouches }} {{ template "user/fragments/networkVouches" .VouchRelationship }} {{ end }} {{ end }} {{ end }}
{{/* render the vouch modal outside the popover content div so the popover api places it in the top layer correctly */}} {{ if and .LoggedInUser (ne .FollowStatus.String "IsSelf") }} {{ template "user/fragments/vouchPopover" (dict "VouchRelationship" .VouchRelationship) }} {{ end }} {{ end }}