From 6c52fcceb73690da8904d585fd103a7fa315415c Mon Sep 17 00:00:00 2001 From: Flare Date: Tue, 25 Oct 2016 20:23:29 +0800 Subject: [PATCH] Modified template to use Gogs supplied name if registered user --- templates/repo/commits_table.tmpl | 2 +- templates/repo/view_list.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index 03e8591f6..f1ce05c2b 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -30,7 +30,7 @@ {{if .User}} -   {{.Author.Name}} +   {{.User.Name}} {{else}}   {{.Author.Name}} {{end}} diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index 0881ce993..6d837d500 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -4,7 +4,7 @@ {{if .LatestCommitUser}} - {{.LatestCommit.Author.Name}} + {{.LatestCommitUser.Name}} {{else}} {{.LatestCommit.Author.Name}}