Skip to content

Commit 6dc27c8

Browse files
committed
Don't show usernames twice
1 parent 87a1c4a commit 6dc27c8

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
@@ -148,7 +148,11 @@
148148
{{if .Author}}
149149
{{avatar $.Context .Author 28 "gt-mr-3"}}
150150
{{if .Author.Name}}
151-
<a href="{{.Author.HomeLink}}"><strong>{{.Commit.Author.Name}} ({{.Author.Name}})</strong></a>
151+
{{if eq .Commit.Author.Name .Author.Name}}
152+
<a href="{{.Author.HomeLink}}"><strong>{{.Commit.Author.Name}}</strong></a>
153+
{{else}}
154+
<a href="{{.Author.HomeLink}}"><strong>{{.Commit.Author.Name}} ({{.Author.Name}})</strong></a>
155+
{{end}}
152156
{{else}}
153157
<a href="{{.Author.HomeLink}}"><strong>{{.Commit.Author.Name}}</strong></a>
154158
{{end}}

0 commit comments

Comments
 (0)