From 8d7893e8175916ce2959882fdfb9dc4e42beb15a Mon Sep 17 00:00:00 2001 From: Yevhen Pavlov Date: Tue, 6 Jun 2023 03:19:24 +0300 Subject: [PATCH] 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) --- templates/repo/issue/list.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index 05aa86fd7..77a5d87f2 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -83,7 +83,7 @@
- {{if $.CanWriteIssuesOrPulls}} + {{if and ($.CanWriteIssuesOrPulls) (gt (len .Issues) 0)}} {{end}} {{template "repo/issue/openclose" .}}