@@ -164,8 +164,8 @@
{{ $latest := $pull.LastRoundNumber }}
- {{ i "chevron-up" "size-4" }}
- {{ i "chevron-down" "size-4" }}
+ {{ i "chevron-up" "size-4" }}
+ {{ i "chevron-down" "size-4" }}
{{ end }}
@@ -222,27 +222,9 @@
{{ $idx := index . 1 }}
{{ $lastIdx := index . 2 }}
{{ $root := index . 3 }}
-
+
{{ template "submissionHeader" $ }}
{{ template "submissionComments" $ }}
-
- {{ if eq $lastIdx $item.RoundNumber }}
- {{ block "mergeStatus" $root }} {{ end }}
- {{ block "resubmitStatus" $root }} {{ end }}
- {{ end }}
-
- {{ if $root.LoggedInUser }}
- {{ template "repo/pulls/fragments/pullActions"
- (dict
- "LoggedInUser" $root.LoggedInUser
- "Pull" $root.Pull
- "RepoInfo" $root.RepoInfo
- "RoundNumber" $item.RoundNumber
- "MergeCheck" $root.MergeCheck
- "ResubmitCheck" $root.ResubmitCheck
- "BranchDeleteStatus" $root.BranchDeleteStatus
- "Stack" $root.Stack) }}
- {{ end }}
{{ end }}
@@ -510,21 +492,62 @@
{{ define "submissionComments" }}
{{ $item := index . 0 }}
-
- {{ range $item.Comments }}
- {{ template "submissionComment" . }}
- {{ end }}
-
+ {{ $idx := index . 1 }}
+ {{ $lastIdx := index . 2 }}
+ {{ $root := index . 3 }}
+ {{ $c := len $item.Comments }}
+
{{ end }}
{{ define "submissionComment" }}
+
+
+
+
+
+
+
+
+ {{ i "circle-plus" "size-4 z-5" }}
+ expand {{ $c }} comment{{ if ne $c 1 }}s{{ end }}
+
+
+
+