From 780cc2d11093e048e41f2d6da9d76f6c6ac4a5e2 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 30 Aug 2016 02:08:38 -0700 Subject: router/repo: code refactoring --- templates/repo/view_list.tmpl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'templates/repo/view_list.tmpl') diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index a92123b8..19a18c1c 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -2,19 +2,19 @@ - {{if .LastCommitUser}} - - {{.LastCommit.Author.Name}} + {{if .LatestCommitUser}} + + {{.LatestCommit.Author.Name}} {{else}} - - {{.LastCommit.Author.Name}} + + {{.LatestCommit.Author.Name}} {{end}} - {{ShortSha .LastCommit.ID.String}} - {{RenderCommitMessage false .LastCommit.Summary .RepoLink $.Repository.ComposeMetas}} + {{ShortSha .LatestCommit.ID.String}} + {{RenderCommitMessage false .LatestCommit.Summary .RepoLink $.Repository.ComposeMetas}} - {{TimeSince .LastCommit.Author.When $.Lang}} + {{TimeSince .LatestCommit.Author.When $.Lang}} -- cgit v1.2.3