{{$class := ""}}
{{if .Commit.Signature}}
{{$class = (printf "%s%s" $class " isSigned")}}
{{if .Verification.Verified}}
{{if eq .Verification.TrustStatus "trusted"}}
{{$class = (printf "%s%s" $class " isVerified")}}
{{else if eq .Verification.TrustStatus "untrusted"}}
{{$class = (printf "%s%s" $class " isVerifiedUntrusted")}}
{{else}}
{{$class = (printf "%s%s" $class " isVerifiedUnmatched")}}
{{end}}
{{else if .Verification.Warning}}
{{$class = (printf "%s%s" $class " isWarning")}}
{{end}}
{{end}}
{{if IsMultilineCommitMessage .Commit.Message}}
{{if .Commit.Signature}}
{{end}}
{{if .Note}}
{{end}}
{{template "repo/diff/box" .}}
{{RenderCommitMessage $.Context .Commit.Message $.RepoLink $.Repository.ComposeMetas}}{{template "repo/commit_statuses" dict "Status" .CommitStatus "Statuses" .CommitStatuses "root" $}}
{{if not $.PageIsWiki}}
{{.i18n.Tr "repo.diff.browse_source"}}
{{if and ($.Permission.CanWrite $.UnitTypeCode) (not $.Repository.IsArchived) (not .IsDeleted)}}{{- /* */ -}}
{{end}}
{{end}}
{{RenderCommitBody $.Context .Commit.Message $.RepoLink $.Repository.ComposeMetas}}{{end}} {{if .BranchName}} {{svg "octicon-git-branch" 16 "mr-2"}}{{.BranchName}} {{end}} {{if .TagName}} {{svg "octicon-tag" 16 "mr-2"}}{{.TagName}} {{end}}
{{if .Parents}}
{{.i18n.Tr "repo.diff.parent"}}
{{range .Parents}}
{{if $.PageIsWiki}}
{{ShortSha .}}
{{else}}
{{ShortSha .}}
{{end}}
{{end}}
{{end}}
{{.i18n.Tr "repo.diff.commit"}}
{{ShortSha .CommitID}}
{{svg "octicon-note" 16 "mr-3"}}
{{.i18n.Tr "repo.diff.git-notes"}}:
{{if .NoteAuthor}}
{{if .NoteAuthor.FullName}}
{{.NoteAuthor.FullName}}
{{else}}
{{.NoteCommit.Author.Name}}
{{end}}
{{else}}
{{.NoteCommit.Author.Name}}
{{end}}
{{TimeSince .NoteCommit.Author.When $.i18n}}
{{RenderNote $.Context .Note $.RepoLink $.Repository.ComposeMetas}}