{{define "content"}} {{$p := .Data.Page}} {{if .Data.Path}}
History of {{.Data.Path}} on {{$p.Ref}}
{{end}} {{if $p.Empty}}No commits.
{{else}} {{with .Data.Error}}{{.}}
{{end}}{{if and .Data.Query (not .Data.Commits) (not .Data.Error)}}No commit on {{$p.Ref}} {{if eq .Data.Mode "regex"}}has a diff line matching{{else}}changes the number of occurrences of{{end}} {{.Data.Query}}.
Commits on {{$p.Ref}} that {{if eq .Data.Mode "regex"}}touch lines matching{{else}}add or remove{{end}} {{.Data.Query}} · clear
{{.Body}}{{end}}