diff --git a/appview/pages/templates/repo/branches.html b/appview/pages/templates/repo/branches.html index f21d27f0..72a48f20 100644 --- a/appview/pages/templates/repo/branches.html +++ b/appview/pages/templates/repo/branches.html @@ -59,7 +59,7 @@ {{ if .Commit }} - {{ .Commit.Author.When | timeFmt }} + {{ .Commit.Committer.When | timeFmt }} {{ end }} @@ -98,7 +98,7 @@
- {{ .Commit.Author.When | timeFmt }} + {{ .Commit.Committer.When | timeFmt }} {{ end }} diff --git a/appview/pages/templates/repo/commit.html b/appview/pages/templates/repo/commit.html index d15ced70..3d60f304 100644 --- a/appview/pages/templates/repo/commit.html +++ b/appview/pages/templates/repo/commit.html @@ -34,7 +34,7 @@ {{ $commit.Author.Name }} {{ end }} - {{ timeFmt $commit.Author.When }} + {{ timeFmt $commit.Committer.When }}

diff --git a/appview/pages/templates/repo/empty.html b/appview/pages/templates/repo/empty.html index 32d9b64f..c83f4da9 100644 --- a/appview/pages/templates/repo/empty.html +++ b/appview/pages/templates/repo/empty.html @@ -17,7 +17,7 @@
{{ $br.Name }} - +
{{ end }} diff --git a/appview/pages/templates/repo/index.html b/appview/pages/templates/repo/index.html index 5974ffbf..0b7bc552 100644 --- a/appview/pages/templates/repo/index.html +++ b/appview/pages/templates/repo/index.html @@ -237,7 +237,7 @@
- {{ timeFmt .Author.When }} + {{ timeFmt .Committer.When }} {{ $tagsForCommit := index $.TagMap .Hash.String }} {{ if gt (len $tagsForCommit) 0 }}
{{ if .Commit }} - + {{ end }} {{ if .IsDefault }} diff --git a/appview/pages/templates/repo/log.html b/appview/pages/templates/repo/log.html index a5167337..c0829da7 100644 --- a/appview/pages/templates/repo/log.html +++ b/appview/pages/templates/repo/log.html @@ -71,7 +71,7 @@ {{ end }} - {{ timeFmt $commit.Author.When }} + {{ timeFmt $commit.Committer.When }} {{ end }} @@ -141,7 +141,7 @@
- {{ shortTimeFmt $commit.Author.When }} + {{ shortTimeFmt $commit.Committer.When }}
{{ end }} diff --git a/appview/state/repo.go b/appview/state/repo.go index 3454e1d2..f2a78ddf 100644 --- a/appview/state/repo.go +++ b/appview/state/repo.go @@ -99,7 +99,7 @@ func (s *State) RepoIndex(w http.ResponseWriter, r *http.Request) { return 1 } if a.Commit != nil { - if a.Commit.Author.When.Before(b.Commit.Author.When) { + if a.Commit.Committer.When.Before(b.Commit.Committer.When) { return 1 } else { return -1 @@ -597,7 +597,7 @@ func (s *State) RepoBranches(w http.ResponseWriter, r *http.Request) { return 1 } if a.Commit != nil { - if a.Commit.Author.When.Before(b.Commit.Author.When) { + if a.Commit.Committer.When.Before(b.Commit.Committer.When) { return 1 } else { return -1