]> source.dussan.org Git - gitea.git/commitdiff
Make "dismiss" content shown correctly (#25461)
authorwxiaoguang <wxiaoguang@gmail.com>
Fri, 23 Jun 2023 10:33:20 +0000 (18:33 +0800)
committerGitHub <noreply@github.com>
Fri, 23 Jun 2023 10:33:20 +0000 (12:33 +0200)
Close #25127

![image](https://github.com/go-gitea/gitea/assets/2114189/7d6be811-8e4a-4982-a5e4-857d171758d4)

Co-authored-by: Giteabot <teabot@gitea.io>
models/issues/comment.go
templates/repo/issue/view_content/comments.tmpl

index e5c90f265e1f7ebbe5cd3d6de464b611d785d584..dbe4434ca7542bae12395679afb8cae4396fc2a4 100644 (file)
@@ -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
index 9097a180e3b597371b1c8e1c204d05a05d5e58b2..5f1f506b27f98d76c697b931ac7ecc693d091ba7 100644 (file)
                                                <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 := ""}}