Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Clone

Read only, no credentials:

https://rodent.software/git/vole.git

Write over SSH with a registered key:

git clone ssh://git@0.0.0.0:2222/vole.git

A free and open-source forge that lives in your Git repo.

Turn the code tab into an editor-style file browser

a464f8927bfb3edcf170694f120dc9b3f68320da · Keenan Nemetz · 15d ago · parent f09ef39e

Turn the code tab into an editor-style file browser

- Add a persistent nested file tree with HTMX file and folder swaps, active
  rows, expanded ancestors, and deep-link support.
- Share one page header across every repository tab: title and summary on the
  left, tab actions grouped on the right.
- Make the repository name the first tab and show visibility with a lock or
  globe icon derived from the ACL.
- Open markdown as syntax-highlighted source by default, with an explicit
  full-width preview toggle.
- Point the branch breadcrumb at the Code overview instead of a second root
  directory listing.
- Move contributor-branch CI approval from the code browser to the Runs tab.
- Extend UI tests for the file tree, fragments, repo visibility, markdown
  source/preview, shared headers, and the moved CI control.

server/web_test.go +9−3

@@ -155,9 +155,15 @@ func TestReadmeIsTheProjectOverview(t *testing.T) {
155 155 if code, codePage := f.get("/r/" + f.repo + "/code"); code != 200 || !strings.Contains(codePage, "Demo project") {
156 156 t.Fatalf("code page = %d", code)
157 157 }
158 // Markdown blobs render too, while source files stay source.
159 if code, body := f.get("/r/" + f.repo + "/blob/main/README.md"); code != 200 || !strings.Contains(body, "<h1>Demo project</h1>") {
160 t.Fatalf("markdown blob = %d:\n%s", code, body)
158 // Markdown opens as source like any other file; rendering is an explicit
159 // preview choice, not the default.
160 if code, body := f.get("/r/" + f.repo + "/blob/main/README.md"); code != 200 ||
161 !strings.Contains(body, `class="chroma"`) || strings.Contains(body, "<h1>Demo project</h1>") {
162 t.Fatalf("markdown source blob = %d:\n%s", code, body)
163 }
164 if code, body := f.get("/r/" + f.repo + "/blob/main/README.md?preview=1"); code != 200 ||
165 !strings.Contains(body, "<h1>Demo project</h1>") {
166 t.Fatalf("markdown preview blob = %d:\n%s", code, body)
161 167 }
162 168 // Source is highlighted, so "package main" arrives as token spans rather than
163 169 // one contiguous string; what matters is that it is code, not rendered markdown.