From 21bcb1be3d0c6367055faebaf877e17b14669854 Mon Sep 17 00:00:00 2001 From: Anbraten Date: Sat, 3 Feb 2024 21:22:28 +0100 Subject: [PATCH] adust template --- templates/repo/issue/view_content/comments.tmpl | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index c65fc82f57b..038c62a67b1 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -1,12 +1,13 @@ {{template "base/alert"}} {{range .Issue.Comments}} - {{if and (eq .Type 29) (or (gt .CommitsNum 0) .IsForcePush)}} - {{- /* If PR is closed, the comments whose type is CommentTypePullRequestPush(29) after latestCloseCommentID won't be rendered. */ -}} - {{if and .Issue.IsClosed (gt .ID $.LatestCloseCommentID)}} - {{continue}} - {{end}} - {{end}} {{if call $.ShouldShowCommentType .Type}} + {{if and (eq .Type 29) (or (gt .CommitsNum 0) .IsForcePush)}} + + {{if and .Issue.IsClosed (gt .ID $.LatestCloseCommentID)}} + {{continue}} + {{end}} + {{end}} + {{template "repo/issue/view_content/comment" .}} {{end}} {{end}}