aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/diff
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2024-02-02 19:01:11 +0900
committerGitHub <noreply@github.com>2024-02-02 10:01:11 +0000
commit3aed8ae03475a430c0dc8e33f42fa9269a4844bd (patch)
tree62b7d27520a18538fc4aca8a6ead7aadf09f430c /templates/repo/diff
parenta062725758b765cdedd1b02da5982c6fbfc5f702 (diff)
downloadgitea-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.tmpl2
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}}