diff options
Diffstat (limited to 'templates/repo/diff.tmpl')
-rw-r--r-- | templates/repo/diff.tmpl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl index 7c0d1b6bb8..8e6b1b0796 100644 --- a/templates/repo/diff.tmpl +++ b/templates/repo/diff.tmpl @@ -30,10 +30,11 @@ </ul> </span> <p class="author"> - <img class="avatar-30" src="{{AvatarLink .Commit.Author.Email}}" /> {{if .Author}} - <a href="{{AppSubUrl}}/{{.Author}}"><strong>{{.Commit.Author.Name}}</strong></a> + <img class="avatar-30" src="{{.Author.AvatarLink}}" /> + <a href="{{AppSubUrl}}/{{.Author.Name}}"><strong>{{.Commit.Author.Name}}</strong></a> {{else}} + <img class="avatar-30" src="{{AvatarLink .Commit.Author.Email}}" /> <strong>{{.Commit.Author.Name}}</strong> {{end}} <span class="text-grey" id="authored-time">{{TimeSince .Commit.Author.When $.Lang}}</span> |