From 9b214b362d8433f682819798dbc08c9bda6f3ef3 Mon Sep 17 00:00:00 2001 From: 0ko <0ko@noreply.codeberg.org> Date: Fri, 8 Mar 2024 09:43:27 +0500 Subject: [PATCH] fix: indicate there are no projects to choose from --- templates/repo/issue/view_content/sidebar.tmpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index ff331f61f3..c3168dd451 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -168,6 +168,11 @@ {{end}}
{{ctx.Locale.Tr "repo.issues.new.clear_projects"}}
+ {{if and (not .OpenProjects) (not .ClosedProjects)}} +
+ {{ctx.Locale.Tr "repo.issues.new.no_items"}} +
+ {{end}} {{if .OpenProjects}}