{{define "content" -}} {{template "repohead" .}} {{- $r := .Repo}} {{- if .Days}}

{{template "icon" "history"}}Latest {{len .Commits}} of {{$r.Commits}} commits on {{$r.DefaultBranch}}

{{- range .Days}}

{{template "icon" "commit"}}{{.Title}}

    {{- range .Commits}}{{$href := printf "/%s/commit/%s/" $r.Name .Hash}}
  1. {{template "who" (dict "R" $r "Name" .Author)}}
    {{.Subject}}{{if isnew .When}}new{{end}} {{.Author}} committed
    {{- if or .Added .Deleted}}+{{.Added}} −{{.Deleted}}{{end}} {{- if eq .Hash $r.Head}}{{template "ci" (dict "S" $r.Status "Href" $href)}}{{end}} {{template "sha" (dict "R" $r "Hash" .Hash "Href" $href)}}
  2. {{- end}}
{{- end}} {{- else}} {{template "emptystate" (dict "Icon" "commit" "Title" "No commits yet." "Hint" "Nothing has been pushed to the default branch.")}} {{- end}} {{- end}}