summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJohn Olheiser <john.olheiser@gmail.com>2023-02-21 11:10:29 -0600
committerGitHub <noreply@github.com>2023-02-21 11:10:29 -0600
commitbbfd34575a1b41d6c65dac34094502561296fa8f (patch)
tree598f04537cf61ace54babe9f5f5f8267436175ab /templates
parent760cf419bacb757da5fb26c1440ce23050feddad (diff)
downloadgitea-bbfd34575a1b41d6c65dac34094502561296fa8f.tar.gz
gitea-bbfd34575a1b41d6c65dac34094502561296fa8f.zip
Display attachments of review comment when comment content is blank (#23035) (#23046)
Backport #23035 Co-authored-by: sillyguodong <33891828+sillyguodong@users.noreply.github.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/issue/view_content/comments.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl
index a9ceb084fd..8371427039 100644
--- a/templates/repo/issue/view_content/comments.tmpl
+++ b/templates/repo/issue/view_content/comments.tmpl
@@ -399,7 +399,7 @@
{{end}}
</span>
</div>
- {{if .Content}}
+ {{if or .Content .Attachments}}
<div class="timeline-item comment" id="{{.HashTag}}">
<div class="content comment-container">
<div class="ui top attached header comment-header df ac sb">