diff options
author | Yevhen Pavlov <yevhen.pavlov.ua@gmail.com> | 2023-06-06 03:19:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-06 08:19:24 +0800 |
commit | 8d7893e8175916ce2959882fdfb9dc4e42beb15a (patch) | |
tree | 14174492c0d454cdfe81240834427f8e77ac299b | |
parent | 7c778d6b5ed5af44e5602e2cea0f41d59853eb84 (diff) | |
download | gitea-8d7893e8175916ce2959882fdfb9dc4e42beb15a.tar.gz gitea-8d7893e8175916ce2959882fdfb9dc4e42beb15a.zip |
Don't display `select all issues` checkbox when no issues are available (#25086)
Before:
![image](https://github.com/go-gitea/gitea/assets/1969460/8830c077-89d4-4897-a6e0-f5dba6830ff7)
After:
![image](https://github.com/go-gitea/gitea/assets/1969460/8fa06878-496b-4f65-87eb-04e1f94d4a3c)
-rw-r--r-- | templates/repo/issue/list.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index 05aa86fd79..77a5d87f26 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -83,7 +83,7 @@ </div> <div id="issue-filters" class="issue-list-toolbar"> <div class="issue-list-toolbar-left"> - {{if $.CanWriteIssuesOrPulls}} + {{if and ($.CanWriteIssuesOrPulls) (gt (len .Issues) 0)}} <input type="checkbox" autocomplete="off" class="issue-checkbox-all gt-mr-4" title="{{.locale.Tr "repo.issues.action_check_all"}}"> {{end}} {{template "repo/issue/openclose" .}} |