From d82f05f871f30d065c707ec443ec2e6782eebfec Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Mon, 23 Feb 2026 06:23:43 +0000 Subject: [PATCH] appview/pages: fix diff/interdiff buttons the buttons were not being hidden/shown correctly when varying the active-round or diff/interdiff pages. Signed-off-by: oppiliappan --- appview/pages/templates/repo/pulls/pull.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appview/pages/templates/repo/pulls/pull.html b/appview/pages/templates/repo/pulls/pull.html index 0f6f5ca9..8ece805c 100644 --- a/appview/pages/templates/repo/pulls/pull.html +++ b/appview/pages/templates/repo/pulls/pull.html @@ -315,14 +315,14 @@
- {{ if ne $root.ActiveRound $round }} + {{ if or $root.IsInterdiff (ne $root.ActiveRound $round) }} {{ i "diff" "w-4 h-4" }} diff {{ end }} - {{ if ne $idx 0 }} + {{ if and (ne $idx 0) (or (not $root.IsInterdiff) (ne $root.ActiveRound $round)) }} {{ i "chevrons-left-right-ellipsis" "w-4 h-4 rotate-90" }} -- 2.51.2