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