1{{ define "repo/pulls/fragments/summarizedHeader" }}
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 }}
13 </span>
14 </div>
15
16 <div class="flex-shrink-0 flex items-center gap-2">
17 {{ $latestRound := .LastRoundNumber }}
18 {{ $lastSubmission := index .Submissions $latestRound }}
19 {{ $commentCount := len $lastSubmission.Comments }}
20 {{ if and $pipeline $pipeline.Id }}
21 {{ template "repo/pipelines/fragments/pipelineSymbol" $pipeline }}
22 <span class="before:content-['·'] before:select-none text-gray-500 dark:text-gray-400"></span>
23 {{ end }}
24 <span>
25 <div class="inline-flex items-center gap-1">
26 {{ i "message-square" "w-3 h-3 md:hidden" }}
27 {{ $commentCount }}
28 <span class="hidden md:inline">comment{{if ne $commentCount 1}}s{{end}}</span>
29 </div>
30 </span>
31 <span class="before:content-['·'] before:select-none text-gray-500 dark:text-gray-400"></span>
32 <span>
33 <span class="hidden md:inline">round</span>
34 <span class="font-mono">#{{ $latestRound }}</span>
35 </span>
36 </div>
37 </div>
38 {{ end }}
39{{ end }}
40