This repository has no description
0

Configure Feed

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

core / appview / pages / templates / timeline / fragments / othersBadge.html
1.1 kB 20 lines
1{{ define "timeline/fragments/othersBadge" }} 2 {{ $group := . }} 3 <span class="relative group inline-flex items-center cursor-pointer" tabindex="0" 4 >and&nbsp;<span class="underline decoration-dotted decoration-gray-400">{{ $group.OthersCount }} other{{ if ne $group.OthersCount 1 }}s{{ end }}</span 5 ><div class="absolute left-0 top-full pt-1 z-10 hidden group-hover:block group-focus-within:block"> 6 <div class="min-w-48 max-w-xs bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded shadow-lg p-2 cursor-default"> 7 <ul class="flex flex-col gap-1"> 8 {{ range $other := $group.Others }} 9 <li class="flex items-center gap-2 text-sm cursor-pointer"> 10 {{ if $other.RepoStar }} 11 {{ template "user/fragments/picHandleLink" $other.RepoStar.Did }} 12 {{ else if $other.Follow }} 13 {{ template "user/fragments/picHandleLink" $other.Follow.UserDid }} 14 {{ end }} 15 </li> 16 {{ end }} 17 </ul> 18 </div> 19 </div></span> 20{{ end }}