diff options
Diffstat (limited to 'templates/repo/graph/commits.tmpl')
-rw-r--r-- | templates/repo/graph/commits.tmpl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/repo/graph/commits.tmpl b/templates/repo/graph/commits.tmpl index d89bcf1cc7..9f7a6c1c66 100644 --- a/templates/repo/graph/commits.tmpl +++ b/templates/repo/graph/commits.tmpl @@ -67,9 +67,11 @@ {{if $commit.User.FullName}} {{$userName = $commit.User.FullName}} {{end}} - <img class="ui avatar image" src="{{$commit.User.RelAvatarLink}}" alt=""/><a href="{{AppSubUrl}}/{{$commit.User.Name}}">{{$userName}}</a> + {{avatar $commit.User}} + <a href="{{AppSubUrl}}/{{$commit.User}}">{{$userName}}</a> {{else}} - <img class="ui avatar image" src="{{AvatarLink $commit.Commit.Author.Email}}" alt=""/>{{$userName}} + {{avatarByEmail $commit.Commit.Author.Email $userName}} + {{$userName}} {{end}} </span> <span class="time df ac">{{$commit.Date}}</span> |