From 13c4c7a13209d30504e9b9385a5098add9185095 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Wed, 5 Aug 2020 03:49:12 -0400 Subject: [PATCH] Match GH with Commit page (#12425) (#12431) Co-authored-by: zeripath Co-authored-by: zeripath --- templates/repo/commit_page.tmpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/repo/commit_page.tmpl b/templates/repo/commit_page.tmpl index dde87c08d1..16ab7a1750 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}}