{{$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 .Commit.Signature}}
{{end}}
{{if .Note}}
{{end}}
{{template "repo/diff/box" .}}
{{if not $.PageIsWiki}}
{{.i18n.Tr "repo.diff.browse_source"}}
{{end}}
{{if IsMultilineCommitMessage .Commit.Message}} {{template "repo/commit_status" .CommitStatus}}
{{RenderCommitBody .Commit.Message $.RepoLink $.Repository.ComposeMetas}}{{end}} {{if .BranchName}} {{svg "octicon-git-branch"}}{{.BranchName}} {{end}} {{if .TagName}} {{svg "octicon-tag"}}{{.TagName}} {{end}}
{{if .Author}}
{{if .Author.FullName}}
{{.Author.FullName}}
{{else}}
{{.Commit.Author.Name}}
{{end}}
{{else}}
{{.Commit.Author.Name}}
{{end}}
{{TimeSince .Commit.Author.When $.Lang}}
{{if or (ne .Commit.Committer.Name .Commit.Author.Name) (ne .Commit.Committer.Email .Commit.Author.Email)}}
{{svg "octicon-git-commit"}}{{.i18n.Tr "repo.diff.committed_by"}}
{{if ne .Verification.CommittingUser.ID 0}}
{{.Commit.Committer.Name}}
{{else}}
{{.Commit.Committer.Name}}
{{end}}
{{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}}
{{RenderNote .Note $.RepoLink $.Repository.ComposeMetas}}