{{$class := ""}}
{{if .Commit.Signature}}
{{$class = (print $class " isSigned")}}
{{if .Verification.Verified}}
{{if eq .Verification.TrustStatus "trusted"}}
{{$class = (print $class " isVerified")}}
{{else if eq .Verification.TrustStatus "untrusted"}}
{{$class = (print $class " isVerifiedUntrusted")}}
{{else}}
{{$class = (print $class " isVerifiedUnmatched")}}
{{end}}
{{else if .Verification.Warning}}
{{$class = (print $class " isWarning")}}
{{end}}
{{end}}
{{if IsMultilineCommitMessage .Commit.Message}}
{{if .Commit.Signature}}
{{end}}
{{if .NoteRendered}}
{{if and ($.Permission.CanWrite $.UnitTypeCode) (not $.Repository.IsArchived) (not .IsDeleted)}}
{{end}}
{{else if and ($.Permission.CanWrite $.UnitTypeCode) (not $.Repository.IsArchived) (not .IsDeleted)}}
{{end}}
{{template "repo/diff/box" .}}
{{RenderCommitMessage $.Context .Commit.Message ($.Repository.ComposeMetas ctx)}}{{template "repo/commit_statuses" dict "Status" .CommitStatus "Statuses" .CommitStatuses}}
{{if not $.PageIsWiki}} {{end}}{{RenderCommitBody $.Context .Commit.Message ($.Repository.ComposeMetas ctx)}}{{end}} {{template "repo/commit_load_branches_and_tags" .}}
{{if .Parents}}
{{ctx.Locale.Tr "repo.diff.parent"}}
{{range .Parents}}
{{if $.PageIsWiki}}
{{ShortSha .}}
{{else}}
{{ShortSha .}}
{{end}}
{{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}}
{{if and ($.Permission.CanWrite $.UnitTypeCode) (not $.Repository.IsArchived) (not .IsDeleted)}}
{{end}}
{{ctx.Locale.Tr "repo.diff.git-notes.remove-header"}}
{{ctx.Locale.Tr "repo.diff.git-notes.remove-body"}}
{{.NoteRendered | SanitizeHTML}}