diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2024-03-18 23:24:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-18 15:24:07 +0000 |
commit | 440be51a451baf08098501e300181cd77d798e11 (patch) | |
tree | b94c08f8443059624bfbc2d30f91a3c9091d79a7 /templates | |
parent | 00ea9af8e118790a186b4cf78a0ce85ce986bf1d (diff) | |
download | gitea-440be51a451baf08098501e300181cd77d798e11.tar.gz gitea-440be51a451baf08098501e300181cd77d798e11.zip |
Fix bug on template (#29887)
Caused by #29807
Fix #29886
Diffstat (limited to 'templates')
-rw-r--r-- | templates/shared/issueicon.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/shared/issueicon.tmpl b/templates/shared/issueicon.tmpl index b8c03c6cb6..94132825c4 100644 --- a/templates/shared/issueicon.tmpl +++ b/templates/shared/issueicon.tmpl @@ -7,9 +7,9 @@ {{if .IsClosed}} {{svg "octicon-git-pull-request" 16 "text red"}} {{else}} - {{if and .PullRequest .PullRequest.IsWorkInProgress ctx}} + {{if and .PullRequest (.PullRequest.IsWorkInProgress ctx)}} {{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"}} {{else}} {{svg "octicon-git-pull-request" 16 "text green"}} |