From b83825253ed803221b3f78162a638d392534cd47 Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 17 Nov 2020 06:02:41 +0100 Subject: Fix label display on new issues (#13590) * Fix label display on new issues PR #13570 broke label rendering for new issues and pulls because missed the fact that the code was relying on the DOM elements being toggled by JavaScript. On top of that, the label rendering for new issues and pull was using an outdated template which I consolidated in a new shared template. * remove wrapper element and style tweaks * style tweaks * use shared template for whole label list Co-authored-by: techknowlogick --- templates/repo/issue/new_form.tmpl | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'templates/repo/issue/new_form.tmpl') diff --git a/templates/repo/issue/new_form.tmpl b/templates/repo/issue/new_form.tmpl index e585fc7359..73a3851e17 100644 --- a/templates/repo/issue/new_form.tmpl +++ b/templates/repo/issue/new_form.tmpl @@ -70,19 +70,7 @@ {{end}} -
- {{.i18n.Tr "repo.issues.new.no_label"}} - {{range .Labels}} - {{if .IsChecked}} - {{.Name | RenderEmoji}} - {{end}} - {{end}} - {{range .OrgLabels}} - {{if .IsChecked}} - {{.Name | RenderEmoji}} - {{end}} - {{end}} -
+ {{template "repo/issue/labels/labels_sidebar" dict "root" $ "ctx" .}}
-- cgit v1.2.3