diff options
author | silverwind <me@silverwind.io> | 2020-11-17 06:02:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-17 07:02:41 +0200 |
commit | b83825253ed803221b3f78162a638d392534cd47 (patch) | |
tree | d61323ffc400e88276d7ece2a41c0538be56ff7b /templates/repo/issue/new_form.tmpl | |
parent | 0a6ce3eaf19649e2254f9c1ca72288d6c01edbf2 (diff) | |
download | gitea-b83825253ed803221b3f78162a638d392534cd47.tar.gz gitea-b83825253ed803221b3f78162a638d392534cd47.zip |
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 <techknowlogick@gitea.io>
Diffstat (limited to 'templates/repo/issue/new_form.tmpl')
-rw-r--r-- | templates/repo/issue/new_form.tmpl | 14 |
1 files changed, 1 insertions, 13 deletions
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}} </div> </div> - <div class="ui labels list"> - <span class="no-select item {{if .HasSelectedLabel}}hide{{end}}">{{.i18n.Tr "repo.issues.new.no_label"}}</span> - {{range .Labels}} - {{if .IsChecked}} - <a class="item" id="label_{{.ID}}" href="{{$.RepoLink}}/issues?labels={{.ID}}"><span class="label color" style="background-color: {{.Color}}"></span> <span class="text">{{.Name | RenderEmoji}}</span></a> - {{end}} - {{end}} - {{range .OrgLabels}} - {{if .IsChecked}} - <a class="item" id="label_{{.ID}}" href="/issues?labels={{.ID}}"><span class="label color" style="background-color: {{.Color}}"></span> <span class="text">{{.Name | RenderEmoji}}</span></a> - {{end}} - {{end}} - </div> + {{template "repo/issue/labels/labels_sidebar" dict "root" $ "ctx" .}} <div class="ui divider"></div> |