{{if .PageIsCommits}} {{.i18n.Tr "repo.commits.commit_history"}} {{else}} {{.CommitsCount}} {{.i18n.Tr "repo.commits.commits"}} {{end}} {{if .PageIsCommits}}
{{else if .IsDiffCompare}} {{ShortSHA1 .BeforeCommitID}} ... {{ShortSHA1 .AfterCommitID}} {{end}}

{{if .Commits}}
{{range .Commits}} {{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}} {{/* Username or Reponame doesn't present we assume the source repository no longer exists */}} {{if not (and $.Username $.Reponame)}} {{ShortSHA1 .ID.String}} {{else}} {{ShortSHA1 .ID.String}} {{end}} {{RenderCommitMessage false .Summary $.RepoLink $.Repository.ComposeMetas | Str2HTML}} {{TimeSince .Author.When $.Lang}}
{{end}} {{if or .HasPrevious .HasNext}}
{{$.i18n.Tr "repo.commits.newer"}} {{$.i18n.Tr "repo.commits.older"}}
{{end}}