{{template "base/head" .}}
{{template "repo/header" .}}
{{$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}}
{{.i18n.Tr "repo.diff.browse_source"}}

{{RenderCommitMessage .Commit.Message $.RepoLink $.Repository.ComposeMetas}}{{template "repo/commit_status" .CommitStatus}}

{{if IsMultilineCommitMessage .Commit.Message}}
{{RenderCommitBody .Commit.Message $.RepoLink $.Repository.ComposeMetas}}
{{end}} {{.BranchName}}
{{if .Author}} {{if .Author.FullName}} {{.Author.FullName}} {{if .IsSigned}}<{{.Commit.Author.Email}}>{{end}} {{else}} {{.Commit.Author.Name}} {{if .IsSigned}}<{{.Commit.Author.Email}}>{{end}} {{end}} {{else}} {{.Commit.Author.Name}} {{end}} {{if or (ne .Commit.Committer.Name .Commit.Author.Name) (ne .Commit.Committer.Email .Commit.Author.Email)}} {{if ne .Verification.CommittingUser.ID 0}} {{.Commit.Committer.Name}} <{{.Commit.Committer.Email}}> {{else}} {{.Commit.Committer.Name}} {{end}} {{end}} {{TimeSince .Commit.Author.When $.Lang}}
{{if .Parents}}
{{.i18n.Tr "repo.diff.parent"}}
{{range .Parents}} {{ShortSha .}} {{end}}
{{end}}
{{.i18n.Tr "repo.diff.commit"}}
{{ShortSha .CommitID}}
{{if .Commit.Signature}}
{{if .Verification.Verified }} {{if ne .Verification.SigningUser.ID 0}} {{if eq .Verification.TrustStatus "trusted"}} {{.i18n.Tr "repo.commits.signed_by"}}: {{else if eq .Verification.TrustStatus "untrusted"}} {{.i18n.Tr "repo.commits.signed_by_untrusted_user"}}: {{else}} {{.i18n.Tr "repo.commits.signed_by_untrusted_user_unmatched"}}: {{end}} {{.Verification.SigningUser.Name}} <{{.Verification.SigningEmail}}> {{.i18n.Tr "repo.commits.gpg_key_id"}}: {{.Verification.SigningKey.KeyID}} {{else}} {{.i18n.Tr "repo.commits.signed_by"}}: {{.Verification.SigningUser.Name}} <{{.Verification.SigningEmail}}> {{.i18n.Tr "repo.commits.gpg_key_id"}}: {{.Verification.SigningKey.KeyID}} {{end}} {{else if .Verification.Warning}} {{.i18n.Tr .Verification.Reason}} {{.i18n.Tr "repo.commits.gpg_key_id"}}: {{.Verification.SigningKey.KeyID}} {{else}} {{.i18n.Tr .Verification.Reason}} {{if and .Verification.SigningKey (ne .Verification.SigningKey.KeyID "")}} {{.i18n.Tr "repo.commits.gpg_key_id"}}: {{.Verification.SigningKey.KeyID}} {{end}} {{end}}
{{end}} {{if .Note}}
{{.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 $.Lang}}
{{RenderNote .Note $.RepoLink $.Repository.ComposeMetas}}
{{end}} {{template "repo/diff/box" .}}
{{template "base/footer" .}}