{{ define "log.html" }}{{ template "base" . }}{{ end }} {{ define "main" }} {{ $slug := print "/" .Info.Slug }} {{ $verify := .Info.GPGKeyring }} {{ $m := mod "meta" }} {{/* "20" here must match core.LogPageSize -- buildCtx uses that constant to snap incoming ?ofs= values onto real page boundaries. */}} {{ $page := mod "log" "20" }}

Commit History

Showing {{ len $page.Commits }} commits

{{/* `with` on the slice, not index 0 -- an empty repo has no commits. */}} {{ with $page.Commits }}
{{ if $verify }}{{ end }} {{ range . }} {{ if $verify }} {{ end }} {{ end }}
Hash Subject AuthorSignatureDate
{{ .Short }} {{ .Subject }} {{ .Author }} {{ if .Verified }}verified {{ else if .Unchecked }}unknown key {{ else if .Signed }}{{ .SigLabel }} {{ else }}—{{ end }}
{{ else }} {{ if $page.HasPrev }}
No commits at this offset.
{{ else }}

No commits yet. This is a fresh repository.

{{ end }} {{ end }} {{ if or $page.HasPrev $page.HasNext }} {{ end }} {{ end }}