{{ define "user/fragments/repoCard" }} {{ $root := index . 0 }} {{ $repo := index . 1 }} {{ $fullName := index . 2 }} {{ with $repo }}
{{- if $fullName -}} {{ index $root.DidHandleMap .Did }}/{{ .Name }} {{- else -}} {{ .Name }} {{- end -}}
{{ with .Description }}
{{ . }}
{{ end }} {{ if .RepoStats }} {{ block "repoStats" .RepoStats }} {{ end }} {{ end }}
{{ end }} {{ end }} {{ define "repoStats" }}
{{ with .Language }}
{{ . }}
{{ end }} {{ with .StarCount }}
{{ i "star" "w-3 h-3 fill-current" }} {{ . }}
{{ end }} {{ with .IssueCount.Open }}
{{ i "circle-dot" "w-3 h-3" }} {{ . }}
{{ end }} {{ with .PullCount.Open }}
{{ i "git-pull-request" "w-3 h-3" }} {{ . }}
{{ end }}
{{ end }}