mirror of
https://github.com/go-gitea/gitea
synced 2025-02-14 08:27:02 +01:00
adust template
This commit is contained in:
parent
e4beba8bdb
commit
21bcb1be3d
@ -1,12 +1,13 @@
|
|||||||
{{template "base/alert"}}
|
{{template "base/alert"}}
|
||||||
{{range .Issue.Comments}}
|
{{range .Issue.Comments}}
|
||||||
|
{{if call $.ShouldShowCommentType .Type}}
|
||||||
{{if and (eq .Type 29) (or (gt .CommitsNum 0) .IsForcePush)}}
|
{{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 PR is closed, the comments whose type is CommentTypePullRequestPush(29) after latestCloseCommentID won't be rendered. //-->
|
||||||
{{if and .Issue.IsClosed (gt .ID $.LatestCloseCommentID)}}
|
{{if and .Issue.IsClosed (gt .ID $.LatestCloseCommentID)}}
|
||||||
{{continue}}
|
{{continue}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if call $.ShouldShowCommentType .Type}}
|
|
||||||
{{template "repo/issue/view_content/comment" .}}
|
{{template "repo/issue/view_content/comment" .}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user