diff options
author | yp05327 <576951401@qq.com> | 2024-02-02 19:01:11 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-02 10:01:11 +0000 |
commit | 3aed8ae03475a430c0dc8e33f42fa9269a4844bd (patch) | |
tree | 62b7d27520a18538fc4aca8a6ead7aadf09f430c /templates/repo/diff | |
parent | a062725758b765cdedd1b02da5982c6fbfc5f702 (diff) | |
download | gitea-3aed8ae03475a430c0dc8e33f42fa9269a4844bd.tar.gz gitea-3aed8ae03475a430c0dc8e33f42fa9269a4844bd.zip |
Fix default avatar image size in PR diff page (#28971)
Fix #28941
ps: didn't test. The repo is too big to migrate.
Diffstat (limited to 'templates/repo/diff')
-rw-r--r-- | templates/repo/diff/comments.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/diff/comments.tmpl b/templates/repo/diff/comments.tmpl index 1e9af5c4a1..2fbfe2fd6a 100644 --- a/templates/repo/diff/comments.tmpl +++ b/templates/repo/diff/comments.tmpl @@ -3,7 +3,7 @@ {{$createdStr:= TimeSinceUnix .CreatedUnix ctx.Locale}} <div class="comment" id="{{.HashTag}}"> {{if .OriginalAuthor}} - <span class="avatar"><img src="{{AppSubUrl}}/assets/img/avatar_default.png"></span> + <span class="avatar">{{ctx.AvatarUtils.Avatar nil}}</span> {{else}} {{template "shared/user/avatarlink" dict "user" .Poster}} {{end}} |