{{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}}
{{if not $.PageIsWiki}} {{.i18n.Tr "repo.diff.browse_source"}} {{end}}

{{RenderCommitMessage .Commit.Message $.RepoLink $.Repository.ComposeMetas}}{{template "repo/commit_statuses" dict "Status" .CommitStatus "Statuses" .CommitStatuses "root" $}}

{{if IsMultilineCommitMessage .Commit.Message}}
{{RenderCommitBody .Commit.Message $.RepoLink $.Repository.ComposeMetas}}
{{end}} {{if .BranchName}} {{svg "octicon-git-branch"}}{{.BranchName}} {{end}} {{if .TagName}} {{svg "octicon-tag"}}{{.TagName}} {{end}}
{{if .Author}} {{avatar .Author}} {{if .Author.FullName}} {{.Author.FullName}} {{else}} {{.Commit.Author.Name}} {{end}} {{else}} {{avatarByEmail .Commit.Author.Email .Commit.Author.Email 12}} {{.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}} {{avatar .Verification.CommittingUser}} {{.Commit.Committer.Name}} {{else}} {{avatarByEmail .Commit.Committer.Email .Commit.Committer.Name}} {{.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}}
{{if .Commit.Signature}}
{{if .Verification.Verified }} {{if ne .Verification.SigningUser.ID 0}} {{svg "gitea-lock"}} {{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}} {{avatar .Verification.SigningUser}} {{.Verification.SigningUser.Name}} {{.i18n.Tr "repo.commits.gpg_key_id"}}: {{.Verification.SigningKey.KeyID}} {{else}} {{svg "gitea-lock-cog"}} {{.i18n.Tr "repo.commits.signed_by"}}: {{avatarByEmail .Verification.SigningEmail ""}} {{.Verification.SigningUser.Name}} {{.i18n.Tr "repo.commits.gpg_key_id"}}: {{.Verification.SigningKey.KeyID}} {{end}} {{else if .Verification.Warning}} {{svg "gitea-unlock"}} {{.i18n.Tr .Verification.Reason}} {{.i18n.Tr "repo.commits.gpg_key_id"}}: {{.Verification.SigningKey.KeyID}} {{else}} {{.i18n.Tr .Verification.Reason}} {{if .Verification.SigningKey}} {{if ne .Verification.SigningKey.KeyID ""}} {{.i18n.Tr "repo.commits.gpg_key_id"}}: {{.Verification.SigningKey.KeyID}} {{end}} {{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" .}}