{{if .PageIsCommits}} {{.i18n.Tr "repo.commits.commit_history"}} {{else}} {{.CommitsCount}} {{.i18n.Tr "repo.commits.commits"}} {{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}} {{if or .HasPrevious .HasNext}}
{{$.i18n.Tr "repo.commits.newer"}} {{$.i18n.Tr "repo.commits.older"}}
{{end}}