]> source.dussan.org Git - gitea.git/commit
Fix label display on new issues (#13590)
authorsilverwind <me@silverwind.io>
Tue, 17 Nov 2020 05:02:41 +0000 (06:02 +0100)
committerGitHub <noreply@github.com>
Tue, 17 Nov 2020 05:02:41 +0000 (07:02 +0200)
commitb83825253ed803221b3f78162a638d392534cd47
treed61323ffc400e88276d7ece2a41c0538be56ff7b
parent0a6ce3eaf19649e2254f9c1ca72288d6c01edbf2
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>
routers/repo/compare.go
templates/repo/issue/labels/label.tmpl [new file with mode: 0644]
templates/repo/issue/labels/labels_sidebar.tmpl [new file with mode: 0644]
templates/repo/issue/new_form.tmpl
templates/repo/issue/view_content/sidebar.tmpl
web_src/less/_repository.less