summaryrefslogtreecommitdiffstats
path: root/templates/repo/diff
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-04-08 14:25:06 +0100
committerGitHub <noreply@github.com>2021-04-08 15:25:06 +0200
commite8693eb328410d92b11e214d118eeca0e437f33c (patch)
tree77b8ae42961a4d2634830e0f5a900d7745c88cdd /templates/repo/diff
parentfa06e98553b78da66cb75e13cffe56b3ef013447 (diff)
downloadgitea-e8693eb328410d92b11e214d118eeca0e437f33c.tar.gz
gitea-e8693eb328410d92b11e214d118eeca0e437f33c.zip
Prepend AppSubUrl to links for default avatar (#15341)
Fix #15334 Signed-off-by: Andrew Thornton <art27@cantab.net>
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 36e7259360..b566ffce9a 100644
--- a/templates/repo/diff/comments.tmpl
+++ b/templates/repo/diff/comments.tmpl
@@ -3,7 +3,7 @@
{{ $createdStr:= TimeSinceUnix .CreatedUnix $.root.Lang }}
<div class="comment" id="{{.HashTag}}">
{{if .OriginalAuthor }}
- <span class="avatar"><img src="/img/avatar_default.png"></span>
+ <span class="avatar"><img src="{{AppSubUrl}}/img/avatar_default.png"></span>
{{else}}
<a class="avatar" {{if gt .Poster.ID 0}}href="{{.Poster.HomeLink}}"{{end}}>
{{avatar .Poster}}