From 0204e467e1f01750c62eb13a3b89f3ab54fcb00e Mon Sep 17 00:00:00 2001 From: Lewis Date: Fri, 20 Mar 2026 13:44:58 +0200 Subject: [PATCH] appview/pages: link quote button specify round Signed-off-by: Lewis --- appview/pages/templates/fragments/line-quote-button.html | 4 +++- appview/pages/templates/repo/pulls/pull.html | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/appview/pages/templates/fragments/line-quote-button.html b/appview/pages/templates/fragments/line-quote-button.html index 56a2c781..503bc9a6 100644 --- a/appview/pages/templates/fragments/line-quote-button.html +++ b/appview/pages/templates/fragments/line-quote-button.html @@ -227,7 +227,9 @@ ? firstAnchor : `${firstAnchor}~${lastAnchor}`; - const md = `[\`${label}\`](${window.location.pathname}${window.location.search}#${fragment})`; + const linkBase = document.getElementById('round-link-base')?.value + || (window.location.pathname + window.location.search); + const md = `[\`${label}\`](${linkBase}#${fragment})`; const { selectionStart: s, selectionEnd: end, value } = ta; const before = value.slice(0, s); diff --git a/appview/pages/templates/repo/pulls/pull.html b/appview/pages/templates/repo/pulls/pull.html index 0fa44338..cd209239 100644 --- a/appview/pages/templates/repo/pulls/pull.html +++ b/appview/pages/templates/repo/pulls/pull.html @@ -99,6 +99,7 @@ {{ end }} {{ define "contentAfter" }} + {{ template "repo/fragments/diff" (list .Diff .DiffOpts $) }} {{ end }} -- 2.51.2