diff options
author | Giteabot <teabot@gitea.io> | 2023-06-23 07:04:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-23 11:04:15 +0000 |
commit | 2e64449de7e400e0dea257b4f2f1530b13f251fc (patch) | |
tree | c8e9ee7d87dc09d98219b16835a134c95e014a40 | |
parent | ec539b7a77e854d44e8f33220062a0b0ae0fb789 (diff) | |
download | gitea-2e64449de7e400e0dea257b4f2f1530b13f251fc.tar.gz gitea-2e64449de7e400e0dea257b4f2f1530b13f251fc.zip |
Make "dismiss" content shown correctly (#25461) (#25465)
Backport #25461 by @wxiaoguang
Close #25127
![image](https://github.com/go-gitea/gitea/assets/2114189/7d6be811-8e4a-4982-a5e4-857d171758d4)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
-rw-r--r-- | models/issues/comment.go | 2 | ||||
-rw-r--r-- | templates/repo/issue/view_content/comments.tmpl | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/models/issues/comment.go b/models/issues/comment.go index e5c90f265e..dbe4434ca7 100644 --- a/models/issues/comment.go +++ b/models/issues/comment.go @@ -167,7 +167,7 @@ func AsCommentType(typeName string) CommentType { func (t CommentType) HasContentSupport() bool { switch t { - case CommentTypeComment, CommentTypeCode, CommentTypeReview: + case CommentTypeComment, CommentTypeCode, CommentTypeReview, CommentTypeDismissReview: return true } return false diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index 5fd46e9e68..0e3fccd1c6 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -767,7 +767,6 @@ <img src="{{.Poster.AvatarLink $.Context}}" width="40" height="40"> </a> <span class="badge grey">{{svg "octicon-x" 16}}</span> - {{template "shared/user/avatarlink" dict "Context" $.Context "user" .Poster}} <span class="text grey muted-links"> {{template "shared/user/authorlink" .Poster}} {{$reviewerName := ""}} |