{{.CommitCount}} {{.i18n.Tr "repo.commits.commits"}} {{if .Branch}}({{.Branch}}){{end}} {{if .PageIsCommits}}
{{else if .IsDiffCompare}} {{ShortSha .BeforeCommitID}} ... {{ShortSha .AfterCommitID}} {{end}}

{{if .Commits}}
{{ $r:= List .Commits}} {{range $r}} {{end}}
{{.i18n.Tr "repo.commits.author"}} SHA1 {{.i18n.Tr "repo.commits.message"}} {{.i18n.Tr "repo.commits.date"}}
{{if .User}}   {{.Author.Name}} {{else}}   {{.Author.Name}} {{end}} {{ShortSha .ID.String}} {{RenderCommitMessage false .Summary $.RepoLink $.Repository.ComposeMetas}} {{TimeSince .Author.When $.Lang}}
{{end}} {{with .Page}} {{if gt .TotalPages 1}}
{{end}} {{end}}