diff options
author | cloudchamb3r <jizon0123@protonmail.com> | 2024-09-24 02:09:57 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 01:09:57 +0800 |
commit | e1f0598c8f5af5ac95f5e13b74fbab99506762db (patch) | |
tree | b37350231ca6f40868138453363c987796242e16 /templates/repo | |
parent | 48cdde98bb0c2e7aad3e5227b992f8017c247854 (diff) | |
download | gitea-e1f0598c8f5af5ac95f5e13b74fbab99506762db.tar.gz gitea-e1f0598c8f5af5ac95f5e13b74fbab99506762db.zip |
Fix Bug in Issue/pulls list (#32081)
fix #32080
## After
### for opened issues
<img width="1199" alt="Screenshot 2024-09-19 at 6 29 31 PM"
src="https://github.com/user-attachments/assets/86cf48ad-5e4b-4dcb-8abe-4d7fd74e0aec">
### for closed issues
<img width="1208" alt="Screenshot 2024-09-19 at 6 29 37 PM"
src="https://github.com/user-attachments/assets/a16bc545-bfcf-49a4-be52-3e7334910482">
### for all issues
<img width="1340" alt="Screenshot 2024-09-20 at 12 07 12 PM"
src="https://github.com/user-attachments/assets/b2309c8f-e59d-44e9-ae3b-bf54e1196169">
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/issue/filter_actions.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/issue/filter_actions.tmpl b/templates/repo/issue/filter_actions.tmpl index 88d0653f7d..831ab17bea 100644 --- a/templates/repo/issue/filter_actions.tmpl +++ b/templates/repo/issue/filter_actions.tmpl @@ -1,9 +1,9 @@ <div class="ui secondary filter menu"> {{if not .Repository.IsArchived}} <!-- Action Button --> - {{if .IsShowClosed}} + {{if and .IsShowClosed.Has .IsShowClosed.Value}} <button class="ui primary basic button issue-action" data-action="open" data-url="{{$.RepoLink}}/issues/status">{{ctx.Locale.Tr "repo.issues.action_open"}}</button> - {{else}} + {{else if and .IsShowClosed.Has (not .IsShowClosed.Value)}} <button class="ui red basic button issue-action" data-action="close" data-url="{{$.RepoLink}}/issues/status">{{ctx.Locale.Tr "repo.issues.action_close"}}</button> {{end}} {{if $.IsRepoAdmin}} |