summaryrefslogtreecommitdiffstats
path: root/templates
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
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')
-rw-r--r--templates/repo/diff/comments.tmpl2
-rw-r--r--templates/repo/issue/view_content.tmpl2
-rw-r--r--templates/repo/issue/view_content/comments.tmpl2
3 files changed, 3 insertions, 3 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}}
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl
index 9967997b92..ed444f6dce 100644
--- a/templates/repo/issue/view_content.tmpl
+++ b/templates/repo/issue/view_content.tmpl
@@ -12,7 +12,7 @@
<div id="{{.Issue.HashTag}}" class="timeline-item comment first">
{{if .Issue.OriginalAuthor}}
<span class="timeline-avatar">
- <img src="{{AppSubUrl}}/assets/img/avatar_default.png" width="40" height="40">
+ {{ctx.AvatarUtils.Avatar nil 40}}
</span>
{{else}}
<a class="timeline-avatar" {{if gt .Issue.Poster.ID 0}}href="{{.Issue.Poster.HomeLink}}"{{end}}>
diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl
index ad7b836e9c..ade0ea34cf 100644
--- a/templates/repo/issue/view_content/comments.tmpl
+++ b/templates/repo/issue/view_content/comments.tmpl
@@ -17,7 +17,7 @@
<div class="timeline-item comment" id="{{.HashTag}}">
{{if .OriginalAuthor}}
<span class="timeline-avatar">
- <img src="{{AppSubUrl}}/assets/img/avatar_default.png" width="40" height="40">
+ {{ctx.AvatarUtils.Avatar nil 40}}
</span>
{{else}}
<a class="timeline-avatar"{{if gt .Poster.ID 0}} href="{{.Poster.HomeLink}}"{{end}}>