]> source.dussan.org Git - gitea.git/commitdiff
display attachments of review comment when comment content is blank (#23035)
authorsillyguodong <33891828+sillyguodong@users.noreply.github.com>
Tue, 21 Feb 2023 16:08:20 +0000 (00:08 +0800)
committerGitHub <noreply@github.com>
Tue, 21 Feb 2023 16:08:20 +0000 (10:08 -0600)
fix: #22647

templates/repo/issue/view_content/comments.tmpl

index 2a9631d86fa9d30c25780106b9249976bd3bb47f..8894a7ffd206cbd3df01613169c733bfa88b003d 100644 (file)
                                                {{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 gt-df gt-ac gt-sb">