From 32ed69b43aeca42e88ab37187246e1035d4c933f Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Tue, 11 Aug 2026 13:32:44 -0400 Subject: Keep the ref picker on the current view and path --- views/_refs.eta | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'views/_refs.eta') diff --git a/views/_refs.eta b/views/_refs.eta index 2450c4b..9d951cc 100644 --- a/views/_refs.eta +++ b/views/_refs.eta @@ -1,10 +1,14 @@ +<% +const linkPrefix = `/${it.repo.owner}/${it.repo.name}/${it.view}/`; +const linkSuffix = it.path ? `/${it.path}` : ""; +%> <% if (it.refs.length === 0) { %>
No <%= it.type %> found.
<% } else { %>