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 / trending.html
873 B 21 lines
1{{ define "timeline/fragments/trending" }} 2<div class="pt-4"> 3 <h3 class="text-xl font-bold dark:text-white flex items-center gap-2 px-6 pb-4"> 4 Trending 5 {{ i "trending-up" "size-4 flex-shrink-0" }} 6 </h3> 7 {{ if .Repos }} 8 <div class="flex gap-4 overflow-x-auto scrollbar-hide items-stretch lg:flex-col lg:overflow-x-visible"> 9 {{ range $index, $repo := .Repos }} 10 <div class="flex-none w-96 border border-gray-200 dark:border-gray-700 rounded-sm lg:flex-none lg:w-auto"> 11 {{ template "user/fragments/repoCard" (list $ $repo true) }} 12 </div> 13 {{ end }} 14 </div> 15 {{ else }} 16 <div class="p-6 border border-gray-200 dark:border-gray-700 rounded-sm text-sm text-gray-500 dark:text-gray-400 text-center"> 17 No trending repositories this week 18 </div> 19 {{ end }} 20</div> 21{{ end }}