This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / appview / pages / templates / user / fragments / profilePopover.html
2.1 kB 59 lines
1{{ define "user/fragments/profilePopover" }} 2{{ $handle := resolve .UserDid }} 3<div class="space-y-2 text-gray-900 dark:text-white"> 4 5 <div class="flex items-center flex-row flex-nowrap gap-2"> 6 <a href="/{{ $handle }}"> 7 <img 8 src="{{ tinyAvatar .UserDid }}" 9 alt="" 10 class="rounded-full border border-gray-300 dark:border-gray-700 size-10" 11 /> 12 </a> 13 <div class="min-w-0"> 14 <p title="{{ $handle }}" class="font-bold dark:text-white overflow-hidden text-ellipsis whitespace-nowrap"> 15 <a href="/{{ $handle }}">{{ $handle }}</a> 16 </p> 17 {{ with .Profile }} 18 {{ if .Pronouns }} 19 <p class="text-gray-500 dark:text-gray-400">{{ .Pronouns }}</p> 20 {{ end }} 21 {{ end }} 22 </div> 23 </div> 24 25 <div class="text-sm space-y-2"> 26 {{ with .Profile }} 27 {{ if .Description }} 28 <p class="line-clamp-3">{{ .Description }}</p> 29 {{ end }} 30 {{ end }} 31 32 <div class="flex items-center gap-2 overflow-hidden text-ellipsis whitespace-nowrap max-w-full text-sm"> 33 {{ i "users" "size-4" }} 34 <a href="/{{ $handle }}?tab=followers">{{ .Stats.FollowersCount }} followers</a> 35 <span class="select-none after:content-['·']"></span> 36 <a href="/{{ $handle }}?tab=following">{{ .Stats.FollowingCount }} following</a> 37 </div> 38 39 {{ if and .LoggedInUser (ne .FollowStatus.String "IsSelf") }} 40 <div class="flex items-center gap-2"> 41 {{ template "user/fragments/follow" . }} 42 {{ template "user/fragments/vouchButton" (dict "VouchRelationship" .VouchRelationship) }} 43 </div> 44 45 {{ if .VouchRelationship }} 46 {{ if .VouchRelationship.IndirectVouches }} 47 {{ template "user/fragments/networkVouches" .VouchRelationship }} 48 {{ end }} 49 {{ end }} 50 {{ end }} 51 </div> 52 53</div> 54 55 {{/* render the vouch modal outside the popover content div so the popover api places it in the top layer correctly */}} 56 {{ if and .LoggedInUser (ne .FollowStatus.String "IsSelf") }} 57 {{ template "user/fragments/vouchPopover" (dict "VouchRelationship" .VouchRelationship) }} 58 {{ end }} 59{{ end }}