Skip to content

Commit 8aabc2f

Browse files
committed
Apply name scheme to committers too
1 parent 6dc27c8 commit 8aabc2f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

templates/repo/commit_page.tmpl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,11 @@
165165
<span class="text grey gt-mx-3">{{.locale.Tr "repo.diff.committed_by"}}</span>
166166
{{if ne .Verification.CommittingUser.ID 0}}
167167
{{avatar $.Context .Verification.CommittingUser 28 "gt-mx-3"}}
168-
<a href="{{.Verification.CommittingUser.HomeLink}}"><strong>{{.Commit.Committer.Name}}</strong></a>
168+
{{if eq .Commit.Committer.Name .Verification.CommittingUser.Name}}
169+
<a href="{{.Verification.CommittingUser.HomeLink}}"><strong>{{.Commit.Committer.Name}} ({{.Verification.CommittingUser.Name}})</strong></a>
170+
{{else}}
171+
<a href="{{.Verification.CommittingUser.HomeLink}}"><strong>{{.Commit.Committer.Name}}</strong></a>
172+
{{end}}
169173
{{else}}
170174
{{avatarByEmail $.Context .Commit.Committer.Email .Commit.Committer.Name 28 "gt-mr-3"}}
171175
<strong>{{.Commit.Committer.Name}}</strong>

0 commit comments

Comments
 (0)