From 17f9ab4ff8ceb890bc0456672a079698e32785b3 Mon Sep 17 00:00:00 2001 From: Thibault Meyer Date: Sat, 29 Oct 2016 18:04:56 +0200 Subject: Use user fullname if resolved --- templates/repo/commits_table.tmpl | 6 +++++- templates/repo/diff/page.tmpl | 6 +++++- templates/repo/view_list.tmpl | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index 03e8591f68..4956acd07e 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -30,7 +30,11 @@ {{if .User}} -   {{.Author.Name}} + {{if .User.FullName}} +   {{.User.FullName}} + {{else}} +   {{.Author.Name}} + {{end}} {{else}}   {{.Author.Name}} {{end}} diff --git a/templates/repo/diff/page.tmpl b/templates/repo/diff/page.tmpl index 0a35a80427..90ee680576 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}} diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index 0881ce9938..f1cbf58a4a 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -4,7 +4,11 @@ {{if .LatestCommitUser}} - {{.LatestCommit.Author.Name}} + {{if .LatestCommitUser.FullName}} + {{.LatestCommitUser.FullName}} + {{else}} + {{.LatestCommit.Author.Name}} + {{end}} {{else}} {{.LatestCommit.Author.Name}} -- cgit v1.2.3