diff --git a/templates/repo/commits_list.tmpl b/templates/repo/commits_list.tmpl index 7bc37175c2..e8ac4020f4 100644 --- a/templates/repo/commits_list.tmpl +++ b/templates/repo/commits_list.tmpl @@ -75,7 +75,11 @@ <pre class="commit-body" style="display: none;">{{RenderCommitBody $.Context .Message $commitRepoLink $.Repository.ComposeMetas}}</pre> {{end}} </td> - <td class="text right aligned">{{TimeSince .Author.When $.Lang}}</td> + {{if .Committer}} + <td class="text right aligned">{{TimeSince .Committer.When $.Lang}}</td> + {{else}} + <td class="text right aligned">{{TimeSince .Author.When $.Lang}}</td> + {{end}} </tr> {{end}} </tbody> diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index 870bbb92e8..b123096777 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -34,7 +34,7 @@ </span> {{end}} </th> - <th class="text grey right age">{{if .LatestCommit}}{{if .LatestCommit.Author}}{{TimeSince .LatestCommit.Author.When $.Lang}}{{end}}{{end}}</th> + <th class="text grey right age">{{if .LatestCommit}}{{if .LatestCommit.Committer}}{{TimeSince .LatestCommit.Committer.When $.Lang}}{{end}}{{end}}</th> </tr> </thead> <tbody>