From 6b7c2cd5d9acb4bc3bd4e99163442d8108006ee6 Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Mon, 19 May 2025 16:48:40 +0100 Subject: [PATCH] appview: pulls: improve stack styling bigger links --- .../repo/pulls/fragments/pullStack.html | 44 ++++++++++++------- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/appview/pages/templates/repo/pulls/fragments/pullStack.html b/appview/pages/templates/repo/pulls/fragments/pullStack.html index 5e2aa7c2..16750a07 100644 --- a/appview/pages/templates/repo/pulls/fragments/pullStack.html +++ b/appview/pages/templates/repo/pulls/fragments/pullStack.html @@ -5,30 +5,44 @@ {{ with $.Pull }} {{ $isCurrent = eq $pull.PullId $.Pull.PullId }} {{ end }} -
- {{ if $isCurrent }} + +
+ {{ if $isCurrent }} {{ i "arrow-right" "w-4 h-4" }} - {{ end }} -
- {{ block "summarizedHeader" (list $pull $) }} {{ end }} + {{ end }} +
+ {{ block "summarizedHeader" $pull }} {{ end }} +
-
+
{{ end }}
{{ end }} {{ define "summarizedHeader" }} - {{ $pull := index . 0 }} - {{ $root := index . 1 }} - -
- {{ block "summarizedPullState" $pull }} {{ end }} - - #{{ $pull.PullId }} - {{ $pull.Title }} +
+
+ {{ block "summarizedPullState" . }} {{ end }} + + #{{ .PullId }} + {{ .Title }}
-
+ +
+ {{ $latestRound := .LastRoundNumber }} + {{ $lastSubmission := index .Submissions $latestRound }} + {{ $commentCount := len $lastSubmission.Comments }} + +
+ {{ $commentCount }} + comment{{if ne $commentCount 1}}s{{end}} +
+
+ + round #{{ $latestRound }} +
+
{{ end }} {{ define "summarizedPullState" }} -- 2.51.2