diff --git a/appview/pages/templates/user/fragments/picLink.html b/appview/pages/templates/user/fragments/picLink.html index 33d5629a..a769c481 100644 --- a/appview/pages/templates/user/fragments/picLink.html +++ b/appview/pages/templates/user/fragments/picLink.html @@ -6,8 +6,23 @@ {{ if ge (len .) 3 }} {{ $vr = index . 2 }} {{ end }} -
- +
+ {{ end }} {{ end }} +
{{ if $vr }} {{ if ne $did $vr.ViewerDid }} diff --git a/appview/pages/templates/user/fragments/profilePopover.html b/appview/pages/templates/user/fragments/profilePopover.html new file mode 100644 index 00000000..3cf20f83 --- /dev/null +++ b/appview/pages/templates/user/fragments/profilePopover.html @@ -0,0 +1,59 @@ +{{ 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" . }} +
+ + {{ 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" . }} + {{ end }} +{{ end }}