Skip to content

Commit 0b83cc2

Browse files
author
Gusted
authored
Fix commit's time (#18375) (#18392)
- Backport of #18375
1 parent b68e605 commit 0b83cc2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

templates/repo/commits_list.tmpl

+5-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@
7575
<pre class="commit-body" style="display: none;">{{RenderCommitBody .Message $commitRepoLink $.Repository.ComposeMetas}}</pre>
7676
{{end}}
7777
</td>
78-
<td class="text right aligned">{{TimeSince .Author.When $.Lang}}</td>
78+
{{if .Committer}}
79+
<td class="text right aligned">{{TimeSince .Committer.When $.Lang}}</td>
80+
{{else}}
81+
<td class="text right aligned">{{TimeSince .Author.When $.Lang}}</td>
82+
{{end}}
7983
</tr>
8084
{{end}}
8185
</tbody>

templates/repo/view_list.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
</span>
3535
{{end}}
3636
</th>
37-
<th class="text grey right age">{{if .LatestCommit}}{{if .LatestCommit.Author}}{{TimeSince .LatestCommit.Author.When $.Lang}}{{end}}{{end}}</th>
37+
<th class="text grey right age">{{if .LatestCommit}}{{if .LatestCommit.Committer}}{{TimeSince .LatestCommit.Committer.When $.Lang}}{{end}}{{end}}</th>
3838
</tr>
3939
</thead>
4040
<tbody>

0 commit comments

Comments
 (0)