From 8fec0b99fbe193326d25fc107e0c625dcf05fd12 Mon Sep 17 00:00:00 2001 From: Joe Mou Date: Tue, 27 Jan 2026 16:58:56 -0500 Subject: Split branch and path bread crumbs into separate section --- views/_nav.eta | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 views/_nav.eta (limited to 'views/_nav.eta') diff --git a/views/_nav.eta b/views/_nav.eta new file mode 100644 index 0000000..338a6a6 --- /dev/null +++ b/views/_nav.eta @@ -0,0 +1,18 @@ +
+
branch <%= it.branch %>
+ <% if (it.path && it.path !== "/") { %> + (top)<% + const pathParts = it.path.split('/').filter(p => p); + let currentPath = ''; + for (let i = 0; i < pathParts.length; i++) { + const part = pathParts[i]; + currentPath += (currentPath ? '/' : '') + part; + const isLast = i === pathParts.length - 1; + if (isLast) { + %>/<%= part %><%= it.isTree ? "/" : "" %><% + } else { + %>/<%= part %><% + } + } %> + <% } %> +
-- cgit v1.3.1