Fix bug on template (#29887)

Caused by #29807
Fix #29886
pull/29896/head
Lunny Xiao 1 year ago committed by GitHub
parent 00ea9af8e1
commit 440be51a45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -7,9 +7,9 @@
{{if .IsClosed}} {{if .IsClosed}}
{{svg "octicon-git-pull-request" 16 "text red"}} {{svg "octicon-git-pull-request" 16 "text red"}}
{{else}} {{else}}
{{if and .PullRequest .PullRequest.IsWorkInProgress ctx}} {{if and .PullRequest (.PullRequest.IsWorkInProgress ctx)}}
{{svg "octicon-git-pull-request-draft" 16 "text grey"}} {{svg "octicon-git-pull-request-draft" 16 "text grey"}}
{{else if and .GetPullRequest .GetPullRequest.IsWorkInProgress ctx}} {{else if and .GetPullRequest (.GetPullRequest.IsWorkInProgress ctx)}}
{{svg "octicon-git-pull-request-draft" 16 "text grey"}} {{svg "octicon-git-pull-request-draft" 16 "text grey"}}
{{else}} {{else}}
{{svg "octicon-git-pull-request" 16 "text green"}} {{svg "octicon-git-pull-request" 16 "text green"}}

Loading…
Cancel
Save