{{ctx.RenderUtils.RenderCommitMessage .Commit.MessageUTF8 $.Repository}}{{template "repo/commit_statuses" dict "Status" .CommitStatus "Statuses" .CommitStatuses "AdditionalClasses" "tw-inline"}}
{{if not $.PageIsWiki}} {{end}}{{ctx.RenderUtils.RenderCommitBody .Commit.MessageUTF8 $.Repository}}
{{end}}
{{template "repo/commit_load_branches_and_tags" .}}
{{if .Author}}
{{ctx.AvatarUtils.Avatar .Author 20}}
{{.Author.GetShortDisplayNameLinkHTML}}
{{else}}
{{ctx.AvatarUtils.AvatarByEmail .Commit.Author.Email .Commit.Author.Email 20}}
{{.Commit.Author.Name}}
{{end}}
{{DateUtils.TimeSince .Commit.Committer.When}}
{{$committerIsAuthor := and (eq .Commit.Committer.Name .Commit.Author.Name) (eq .Commit.Committer.Email .Commit.Author.Email)}}
{{if not $committerIsAuthor}}
{{ctx.Locale.Tr "repo.diff.committed_by"}}
{{if and .Verification.CommittingUser}}
{{ctx.AvatarUtils.Avatar .Verification.CommittingUser 20}}
{{.Verification.CommittingUser.GetShortDisplayNameLinkHTML}}
{{else}}
{{ctx.AvatarUtils.AvatarByEmail .Commit.Committer.Email .Commit.Committer.Email 20}}
{{.Commit.Committer.Name}}
{{end}}
{{end}}
{{if .CommitOtherParticipants}}
{{ctx.Locale.Tr "repo.diff.coauthored_by"}}
{{range $participant := .CommitOtherParticipants}}
{{$user := $participant.GiteaUser}}
{{$gitIdentity := $participant.GitIdentity}}
{{if $user}}
{{ctx.AvatarUtils.Avatar $user 20}}
{{$user.GetShortDisplayNameLinkHTML}}
{{else}}
{{$gitName := $gitIdentity.Name}}
{{$gitEmail := $gitIdentity.Email}}
{{ctx.AvatarUtils.AvatarByEmail $gitEmail $gitEmail 20}}{{/* use the same layout as the "author" above */}}
{{$gitName}}
{{end}}
{{end}}
{{end}}
{{if .Verification}}
{{template "repo/commit_sign_badge" dict "CommitSignVerification" .Verification}}
{{end}}
{{if .Parents}}
{{ctx.Locale.Tr "repo.diff.parent"}}
{{range .Parents}}
{{ShortSha .}}
{{end}}
{{end}}
{{ctx.Locale.Tr "repo.diff.commit"}}
{{ShortSha .CommitID}}
{{svg "octicon-note" 16 "tw-mr-2"}}
{{ctx.Locale.Tr "repo.diff.git-notes"}}:
{{if .NoteAuthor}}
{{if .NoteAuthor.FullName}}
{{.NoteAuthor.FullName}}
{{else}}
{{.NoteCommit.Author.Name}}
{{end}}
{{else}}
{{.NoteCommit.Author.Name}}
{{end}}
{{DateUtils.TimeSince .NoteCommit.Author.When}}
{{.NoteRendered}}