this repo has no description
1{{ define "user/fragments/repoCard" }} 2 {{ $root := index . 0 }} 3 {{ $repo := index . 1 }} 4 {{ $fullName := index . 2 }} 5 6 {{ with $repo }} 7 <div class="py-4 px-6 gap-1 flex flex-col drop-shadow-sm rounded bg-white dark:bg-gray-800 min-h-32"> 8 <div class="font-medium dark:text-white flex items-center"> 9 {{ if .Source }} 10 {{ i "git-fork" "w-4 h-4 mr-1.5 shrink-0" }} 11 {{ else }} 12 {{ i "book-marked" "w-4 h-4 mr-1.5 shrink-0" }} 13 {{ end }} 14 15 {{ $repoOwner := resolve .Did }} 16 {{- if $fullName -}} 17 <a href="/{{ $repoOwner }}/{{ .Name }}" class="truncate">{{ $repoOwner }}/{{ .Name }}</a> 18 {{- else -}} 19 <a href="/{{ $repoOwner }}/{{ .Name }}" class="truncate">{{ .Name }}</a> 20 {{- end -}} 21 </div> 22 {{ with .Description }} 23 <div class="text-gray-600 dark:text-gray-300 text-sm line-clamp-2"> 24 {{ . | description }} 25 </div> 26 {{ end }} 27 28 {{ if .RepoStats }} 29 {{ block "repoStats" .RepoStats }}{{ end }} 30 {{ end }} 31 </div> 32 {{ end }} 33{{ end }} 34 35{{ define "repoStats" }} 36 <div class="text-gray-400 text-sm font-mono inline-flex gap-4 mt-auto"> 37 {{ with .Language }} 38 <div class="flex gap-2 items-center text-sm"> 39 {{ template "repo/fragments/languageBall" . }} 40 <span>{{ . }}</span> 41 </div> 42 {{ end }} 43 {{ with .StarCount }} 44 <div class="flex gap-1 items-center text-sm"> 45 {{ i "star" "w-3 h-3 fill-current" }} 46 <span>{{ . }}</span> 47 </div> 48 {{ end }} 49 {{ with .IssueCount.Open }} 50 <div class="flex gap-1 items-center text-sm"> 51 {{ i "circle-dot" "w-3 h-3" }} 52 <span>{{ . }}</span> 53 </div> 54 {{ end }} 55 {{ with .PullCount.Open }} 56 <div class="flex gap-1 items-center text-sm"> 57 {{ i "git-pull-request" "w-3 h-3" }} 58 <span>{{ . }}</span> 59 </div> 60 {{ end }} 61 </div> 62{{ end }}