From 1bed7ea2014e82d5b78c650ae48a243a7317b1f3 Mon Sep 17 00:00:00 2001 From: eti Date: Fri, 27 Mar 2026 19:42:24 +0000 Subject: [PATCH] appview/pages/templates/repo/pulls: add collapse comments button Add a "collapse comments" button because the previous and only way to collapse them, the vertical line, was not always obvious. Signed-off-by: eti --- appview/pages/templates/repo/pulls/pull.html | 13 +++++++++---- 1 file(s) changed, 9 insertion(s)(+), 4 deletion(s)(-) diff --git a/appview/pages/templates/repo/pulls/pull.html b/appview/pages/templates/repo/pulls/pull.html --- a/appview/pages/templates/repo/pulls/pull.html +++ b/appview/pages/templates/repo/pulls/pull.html @@ -119,7 +119,7 @@ {{ define "resize-grip" }} {{ $id := index . 0 }} {{ $target := index . 1 }} {{ $direction := index . 2 }} -
- {{ $handle := resolve $root.Pull.OwnerDid }} + {{ $handle := resolve $root.Pull.OwnerDid }} {{ $handle }} submitted @@ -548,10 +548,10 @@ {{ $lastIdx := index . 2 }} {{ $root := index . 3 }} {{ $round := $item.RoundNumber }} {{ $c := len $item.Comments }} -
+
@@ -568,6 +568,11 @@ {{ range $item.Comments }} {{ template "submissionComment" . }} {{ end }}
+ {{ if gt $c 0}} + + {{ end }}
{{ if eq $lastIdx $item.RoundNumber }} -- tangled.sh