Monorepo for Tangled
1{{ define "repo/pulls/fragments/summarizedPullHeader" }}
2 {{ $pull := index . 0 }}
3 {{ $pipeline := index . 1 }}
4 {{ with $pull }}
5 <div class="flex text-sm items-center justify-between w-full">
6 <div class="flex items-center gap-2 min-w-0 flex-1 pr-2">
7 <div class="flex-shrink-0">
8 {{ template "repo/pulls/fragments/summarizedPullState" .State }}
9 </div>
10 <span class="truncate text-sm text-gray-800 dark:text-gray-200">
11 <span class="text-gray-500 dark:text-gray-400">#{{ .PullId }}</span>
12 {{ .Title | description }}
13 </span>
14 </div>
15
16 <div class="flex-shrink-0 flex items-center gap-2">
17 {{ $latestRound := .LastRoundNumber }}
18 {{ $commentCount := .TotalComments }}
19 {{ if and $pipeline $pipeline.Id }}
20 {{ template "repo/pipelines/fragments/pipelineSymbol" (dict "Pipeline" $pipeline "ShortSummary" true) }}
21 <span class="before:content-['·'] before:select-none text-gray-500 dark:text-gray-400"></span>
22 {{ end }}
23 <span>
24 <div class="inline-flex items-center gap-1">
25 {{ i "message-square" "w-3 h-3 md:hidden" }}
26 {{ $commentCount }}
27 <span class="hidden md:inline">comment{{if ne $commentCount 1}}s{{end}}</span>
28 </div>
29 </span>
30 <span class="before:content-['·'] before:select-none text-gray-500 dark:text-gray-400"></span>
31 <span>
32 <span class="hidden md:inline">round</span>
33 <span class="font-mono">#{{ $latestRound }}</span>
34 </span>
35 </div>
36 </div>
37 {{ end }}
38{{ end }}
39