From 83dceb9eda6cc94c6ed02bf2cd3b73c6b1b672be Mon Sep 17 00:00:00 2001
From: "m.huber" <m.huber@kithara.com>
Date: Fri, 5 Jul 2024 22:47:15 +0200
Subject: [PATCH 1/4] WebUI also respect to hide label at Issue-Templates

---
 templates/repo/issue/fields/header.tmpl | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/templates/repo/issue/fields/header.tmpl b/templates/repo/issue/fields/header.tmpl
index 6034fed5fd23d..7a1465007220d 100644
--- a/templates/repo/issue/fields/header.tmpl
+++ b/templates/repo/issue/fields/header.tmpl
@@ -1,5 +1,7 @@
-{{if .item.Attributes.label}}
-	<h3>{{.item.Attributes.label}}{{if .item.Validations.required}}<label class="required"></label>{{end}}</h3>
+{{if .item.Attributes.label }}
+  {{ if not .item.Attributes.hide_label }}
+	  <h3>{{.item.Attributes.label}}{{if .item.Validations.required}}<label class="required"></label>{{end}}</h3>
+	{{end}}
 {{end}}
 {{if .item.Attributes.description}}
 	<span class="help">{{RenderMarkdownToHtml .Context .item.Attributes.description}}</span>

From 3a31b8b9db0cb30c965098d1a68263eb294b87ea Mon Sep 17 00:00:00 2001
From: "m.huber" <m.huber@kithara.com>
Date: Fri, 5 Jul 2024 22:49:49 +0200
Subject: [PATCH 2/4] one if again

---
 templates/repo/issue/fields/header.tmpl | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/templates/repo/issue/fields/header.tmpl b/templates/repo/issue/fields/header.tmpl
index 7a1465007220d..43d6b6e260aa3 100644
--- a/templates/repo/issue/fields/header.tmpl
+++ b/templates/repo/issue/fields/header.tmpl
@@ -1,7 +1,5 @@
-{{if .item.Attributes.label }}
-  {{ if not .item.Attributes.hide_label }}
-	  <h3>{{.item.Attributes.label}}{{if .item.Validations.required}}<label class="required"></label>{{end}}</h3>
-	{{end}}
+{{if and (.item.Attributes.label) (not .item.Attributes.hide_label) }}
+  <h3>{{.item.Attributes.label}}{{if .item.Validations.required}}<label class="required"></label>{{end}}</h3>
 {{end}}
 {{if .item.Attributes.description}}
 	<span class="help">{{RenderMarkdownToHtml .Context .item.Attributes.description}}</span>

From 8e5a0a2fa3c21ab0524ef2ad7ffa0679635b1154 Mon Sep 17 00:00:00 2001
From: "m.huber" <m.huber@kithara.com>
Date: Fri, 5 Jul 2024 22:50:19 +0200
Subject: [PATCH 3/4] less diff

---
 templates/repo/issue/fields/header.tmpl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/repo/issue/fields/header.tmpl b/templates/repo/issue/fields/header.tmpl
index 43d6b6e260aa3..cb735edb6c8da 100644
--- a/templates/repo/issue/fields/header.tmpl
+++ b/templates/repo/issue/fields/header.tmpl
@@ -1,5 +1,5 @@
 {{if and (.item.Attributes.label) (not .item.Attributes.hide_label) }}
-  <h3>{{.item.Attributes.label}}{{if .item.Validations.required}}<label class="required"></label>{{end}}</h3>
+	<h3>{{.item.Attributes.label}}{{if .item.Validations.required}}<label class="required"></label>{{end}}</h3>
 {{end}}
 {{if .item.Attributes.description}}
 	<span class="help">{{RenderMarkdownToHtml .Context .item.Attributes.description}}</span>

From 1b6d6e6be9ca9ff6d923310021da0eb618ee7a85 Mon Sep 17 00:00:00 2001
From: "m.huber" <m.huber@kithara.com>
Date: Fri, 5 Jul 2024 22:50:38 +0200
Subject: [PATCH 4/4] fmt

---
 templates/repo/issue/fields/header.tmpl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/repo/issue/fields/header.tmpl b/templates/repo/issue/fields/header.tmpl
index cb735edb6c8da..06c41af6b9902 100644
--- a/templates/repo/issue/fields/header.tmpl
+++ b/templates/repo/issue/fields/header.tmpl
@@ -1,4 +1,4 @@
-{{if and (.item.Attributes.label) (not .item.Attributes.hide_label) }}
+{{if and (.item.Attributes.label) (not .item.Attributes.hide_label)}}
 	<h3>{{.item.Attributes.label}}{{if .item.Validations.required}}<label class="required"></label>{{end}}</h3>
 {{end}}
 {{if .item.Attributes.description}}