mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-11 17:05:58 +01:00
b83825253e
* 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>
10 lines
376 B
Handlebars
10 lines
376 B
Handlebars
<a
|
|
class="ui label item {{if not .label.IsChecked}}hide{{end}}"
|
|
id="label_{{.label.ID}}"
|
|
href="{{.root.RepoLink}}/{{if or .root.IsPull .root.Issue.IsPull}}pulls{{else}}issues{{end}}?labels={{.label.ID}}"
|
|
style="color: {{.label.ForegroundColor}}; background-color: {{.label.Color}}"
|
|
title="{{.label.Description | RenderEmojiPlain}}"
|
|
>
|
|
{{.label.Name | RenderEmoji}}
|
|
</a>
|