From 05e5d797bd79d63b921408a23d0ae893455d2cb4 Mon Sep 17 00:00:00 2001 From: Flare Date: Wed, 26 Oct 2016 18:05:23 +0800 Subject: [PATCH] Added tweak to diff page too. --- templates/repo/diff/page.tmpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/repo/diff/page.tmpl b/templates/repo/diff/page.tmpl index 0a35a8042..f22115d2c 100644 --- a/templates/repo/diff/page.tmpl +++ b/templates/repo/diff/page.tmpl @@ -14,7 +14,11 @@
{{if .Author}} - {{.Commit.Author.Name}} {{if .IsSigned}}<{{.Commit.Author.Email}}>{{end}} + {{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}}