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/vole.git

Write over SSH with a registered key:

git clone ssh://git@rodent.software:2222/vole.git

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

Add file history and blame views

67a308badf4a88298639271a1201ff45cc3737a6 · Keenan Nemetz · 15d ago · parent f204e7ee

Add file history and blame views

A blob's toolbar now links to the commits that touched its path and to per-line attribution. File history uses git log for the path, following renames for blobs; blame groups consecutive lines by commit and shows the author and age in a left column. Both are read-only and reuse the existing commit-link and escaping rules.

server/web/templates/file_history.html +21

@@ -0,0 +1,21 @@
1 {{define "file_history"}}
2 {{template "header" .}}
3 {{template "repohead" (nav .Name "code" .CanAdmin)}}
4
5 <div class="page-head">
6 <div class="page-head-main">
7 <h1>{{.Path}}</h1>
8 <p class="page-sub">History on <code>{{.Ref}}</code> · {{len .Commits}} commit(s)</p>
9 </div>
10 <div class="page-head-actions">
11 <a class="button secondary" href="/r/{{.Name}}/blob/{{esc .Ref}}/{{pathurl .Path}}">{{icon "file"}}View file</a>
12 {{if .IsBlob}}<a class="button secondary" href="/r/{{.Name}}/blame/{{esc .Ref}}/{{pathurl .Path}}">{{icon "git-commit-horizontal"}}Blame</a>{{end}}
13 <a class="button secondary" href="/r/{{.Name}}/code?ref={{esc .Ref}}">{{icon "code"}}Browse</a>
14 </div>
15 </div>
16
17 <div class="panel">
18 {{template "commitlist" .}}
19 </div>
20 {{template "footer" .}}
21 {{end}}