diff --git a/templates/repo/commit_page.tmpl b/templates/repo/commit_page.tmpl index dde87c08d..16ab7a175 100644 --- a/templates/repo/commit_page.tmpl +++ b/templates/repo/commit_page.tmpl @@ -35,9 +35,9 @@ {{if .Author}} {{if .Author.FullName}} - {{.Author.FullName}} {{if .IsSigned}}<{{.Commit.Author.Email}}>{{end}} + {{.Author.FullName}} {{else}} - {{.Commit.Author.Name}} {{if .IsSigned}}<{{.Commit.Author.Email}}>{{end}} + {{.Commit.Author.Name}} {{end}} {{else}} @@ -49,7 +49,7 @@ {{svg "octicon-git-commit" 16}}{{.i18n.Tr "repo.diff.committed_by"}} {{if ne .Verification.CommittingUser.ID 0}} - {{.Commit.Committer.Name}} <{{.Commit.Committer.Email}}> + {{.Commit.Committer.Name}} {{else}} {{.Commit.Committer.Name}} @@ -94,7 +94,7 @@ {{.i18n.Tr "repo.commits.signed_by_untrusted_user_unmatched"}}: {{end}} - {{.Verification.SigningUser.Name}} <{{.Verification.SigningEmail}}> + {{.Verification.SigningUser.Name}} {{.i18n.Tr "repo.commits.gpg_key_id"}}: {{.Verification.SigningKey.KeyID}} {{else}} @@ -103,7 +103,7 @@ {{.i18n.Tr "repo.commits.signed_by"}}: - {{.Verification.SigningUser.Name}} <{{.Verification.SigningEmail}}> + {{.Verification.SigningUser.Name}} {{.i18n.Tr "repo.commits.gpg_key_id"}}: {{.Verification.SigningKey.KeyID}} {{end}} {{else if .Verification.Warning}}