{{define "content"}} {{$p := .Data.Page}} {{$c := .Data.Commit}}

{{$c.Subject}}

commit
{{$c.Hash}} browse tree
{{range $c.Parents}}
parent
{{.}}
{{end}}
author
{{template "who" $c}} <{{$c.Email}}>
signature
{{with signer $c}}{{template "lock"}}Signed by: ~{{.}}{{else}}{{if and $c.Signature (ne $c.Signature "N")}}{{template "lock"}}Signed with an unregistered key{{else}}none{{end}}{{end}}{{if and $c.Key (ne $c.Signature "N")}} {{$c.Key}}{{end}}
date
{{date $c.Time}} UTC
{{if $c.Body}}
{{$c.Body}}
{{end}}

{{len .Data.Files}} files changed, +{{.Data.Added}} −{{.Data.Removed}}

{{range .Data.Files}}

{{if eq .Status "renamed"}}{{.Old}} → {{end}}{{.New}} {{.Status}}

{{if .Binary}}

Binary file.

{{end}} {{range .Hunks}} {{range .Lines}}{{end}}
{{.Header}}
{{if .Old}}{{.Old}}{{end}}{{if .New}}{{.New}}{{end}}{{if eq .Kind "add"}}+{{else if eq .Kind "del"}}-{{else if eq .Kind "ctx"}} {{end}}{{.Text}}
{{end}}
{{end}} {{end}}