this repo has no description

appview/pages: link quote button specify round

Signed-off-by: Lewis <lewis@tangled.org>

authored by oyster.cafe and committed by tangled.org 0204e467 5b86d15f

+4 -1
+3 -1
appview/pages/templates/fragments/line-quote-button.html
··· 227 227 ? firstAnchor 228 228 : `${firstAnchor}~${lastAnchor}`; 229 229 230 - const md = `[\`${label}\`](${window.location.pathname}${window.location.search}#${fragment})`; 230 + const linkBase = document.getElementById('round-link-base')?.value 231 + || (window.location.pathname + window.location.search); 232 + const md = `[\`${label}\`](${linkBase}#${fragment})`; 231 233 232 234 const { selectionStart: s, selectionEnd: end, value } = ta; 233 235 const before = value.slice(0, s);
+1
appview/pages/templates/repo/pulls/pull.html
··· 99 99 {{ end }} 100 100 101 101 {{ define "contentAfter" }} 102 + <input type="hidden" id="round-link-base" value="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/round/{{ .ActiveRound }}" /> 102 103 {{ template "repo/fragments/diff" (list .Diff .DiffOpts $) }} 103 104 {{ end }} 104 105