diff options
author | 6543 <6543@obermui.de> | 2024-07-07 21:31:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-08 04:31:12 +0000 |
commit | d7c7a789947080be76d94f28f3f7f8788a545f7d (patch) | |
tree | ea27847de02f9d9291d005b7e53ebeda11ef996f /templates/repo | |
parent | 017ea19e5d317a3c2ff941c5b9f8703e46a2c742 (diff) | |
download | gitea-d7c7a789947080be76d94f28f3f7f8788a545f7d.tar.gz gitea-d7c7a789947080be76d94f28f3f7f8788a545f7d.zip |
Don't show hidden labels when filling out an issue template (#31576)
Related to #31574
---
*Sponsored by Kithara Software GmbH*
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/issue/fields/header.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/fields/header.tmpl b/templates/repo/issue/fields/header.tmpl index 6034fed5fd..06c41af6b9 100644 --- a/templates/repo/issue/fields/header.tmpl +++ b/templates/repo/issue/fields/header.tmpl @@ -1,4 +1,4 @@ -{{if .item.Attributes.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}} |