···
{{ template "repo/fragments/time" .Created }}
87
+
{{ $latestRound := .LastRoundNumber }}
88
+
{{ $lastSubmission := index .Submissions $latestRound }}
<span class="before:content-['·']">
88
-
<span class="text-xs rounded bg-gray-100 dark:bg-gray-700 text-black dark:text-white font-mono px-2 mx-1/2 inline-flex items-center">
92
-
{{ if not .IsPatchBased }}
94
-
<span class="text-xs rounded bg-gray-100 dark:bg-gray-700 text-black dark:text-white font-mono px-2 mx-1/2 inline-flex items-center">
95
-
{{ if .IsForkBased }}
96
-
{{ if .PullSource.Repo }}
97
-
<a href="/{{ $owner }}/{{ .PullSource.Repo.Name }}" class="no-underline hover:underline">{{ $owner }}/{{ .PullSource.Repo.Name }}</a>:
99
-
<span class="italic">[deleted fork]</span>
102
-
{{- .PullSource.Branch -}}
91
+
{{ $commentCount := len $lastSubmission.Comments }}
93
+
{{ if eq $commentCount 1 }}
97
+
{{ len $lastSubmission.Comments}} comment{{$s}}
105
-
<span class="before:content-['·']">
106
-
{{ $latestRound := .LastRoundNumber }}
107
-
{{ $lastSubmission := index .Submissions $latestRound }}
109
-
<span class="text-xs rounded bg-gray-100 dark:bg-gray-700 text-black dark:text-white font-mono px-2 mx-1/2 inline-flex items-center">
110
-
#{{ .LastRoundNumber }}
112
-
{{ $commentCount := len $lastSubmission.Comments }}
114
-
{{ if eq $commentCount 1 }}
118
-
{{ if eq $commentCount 0 }}
121
-
recieved {{ len $lastSubmission.Comments}} comment{{$s}}
100
+
<span class="before:content-['·']">
102
+
<span class="font-mono">
103
+
#{{ .LastRoundNumber }}
{{ $otherPulls := index $.Stacks .StackId }}
128
-
<details class="bg-white dark:bg-gray-800 group">
129
-
<summary class="pb-4 px-6 text-xs list-none cursor-pointer hover:text-gray-500 hover:dark:text-gray-400">
131
-
{{ if eq (len $otherPulls) 1 }}
134
-
<div class="group-open:hidden flex items-center gap-2">
135
-
{{ i "chevrons-up-down" "w-4 h-4" }} expand {{ len $otherPulls }} pull{{$s}} in this stack
137
-
<div class="hidden group-open:flex items-center gap-2">
138
-
{{ i "chevrons-down-up" "w-4 h-4" }} hide {{ len $otherPulls }} pull{{$s}} in this stack
141
-
{{ block "pullList" (list $otherPulls $) }} {{ end }}
110
+
{{ if gt (len $otherPulls) 0 }}
111
+
<details class="bg-white dark:bg-gray-800 group">
112
+
<summary class="pb-4 px-6 text-xs list-none cursor-pointer hover:text-gray-500 hover:dark:text-gray-400">
114
+
{{ if eq (len $otherPulls) 1 }}
117
+
<div class="group-open:hidden flex items-center gap-2">
118
+
{{ i "chevrons-up-down" "w-4 h-4" }} expand {{ len $otherPulls }} pull{{$s}} in this stack
120
+
<div class="hidden group-open:flex items-center gap-2">
121
+
{{ i "chevrons-down-up" "w-4 h-4" }} hide {{ len $otherPulls }} pull{{$s}} in this stack
124
+
{{ block "pullList" (list $otherPulls $) }} {{ end }}