We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87a1c4a commit 6dc27c8Copy full SHA for 6dc27c8
templates/repo/commit_page.tmpl
@@ -148,7 +148,11 @@
148
{{if .Author}}
149
{{avatar $.Context .Author 28 "gt-mr-3"}}
150
{{if .Author.Name}}
151
- <a href="{{.Author.HomeLink}}"><strong>{{.Commit.Author.Name}} ({{.Author.Name}})</strong></a>
+ {{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}}
156
{{else}}
157
<a href="{{.Author.HomeLink}}"><strong>{{.Commit.Author.Name}}</strong></a>
158
{{end}}
0 commit comments