diff options
author | zeripath | 2021-04-08 12:23:42 +0100 |
---|---|---|
committer | GitHub | 2021-04-08 13:23:42 +0200 |
commit | 223dddb29e7559896a49b4e3fc89472b4444abf6 (patch) | |
tree | a430fcf345f46e320d17fd57f47c845ab38bc86a | |
parent | ef2cb41dc3b55f014f0f03adfc1737c62069ee6f (diff) |
Prepend AppSubUrl to links for default avatar (#15341) (#15343)
Backport #15341
Fix #15334
Signed-off-by: Andrew Thornton <art27@cantab.net>
-rw-r--r-- | templates/repo/diff/comments.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/view_content.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/view_content/comments.tmpl | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/diff/comments.tmpl b/templates/repo/diff/comments.tmpl index 69e87a7a7..11e59b48a 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}}> <img src="{{.Poster.RelAvatarLink}}"> diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 9f4c64159..5c2a21da8 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -13,7 +13,7 @@ <ui class="ui timeline"> <div id="{{.Issue.HashTag}}" class="timeline-item comment first"> {{if .Issue.OriginalAuthor }} - <span class="timeline-avatar"><img src="/img/avatar_default.png"></span> + <span class="timeline-avatar"><img src="{{AppSubUrl}}/img/avatar_default.png"></span> {{else}} <a class="timeline-avatar" {{if gt .Issue.Poster.ID 0}}href="{{.Issue.Poster.HomeLink}}"{{end}}> <img src="{{.Issue.Poster.RelAvatarLink}}"> diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index db2e4f810..8d6d15089 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -12,7 +12,7 @@ {{if eq .Type 0}} <div class="timeline-item comment" id="{{.HashTag}}"> {{if .OriginalAuthor }} - <span class="timeline-avatar"><img src="/img/avatar_default.png"></span> + <span class="timeline-avatar"><img src="{{AppSubUrl}}/img/avatar_default.png"></span> {{else}} <a class="timeline-avatar" {{if gt .Poster.ID 0}}href="{{.Poster.HomeLink}}"{{end}}> <img src="{{.Poster.RelAvatarLink}}"> |