mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-30 09:41:11 -05:00
b2d3ae4dc0
- Don't show the labels-list element, if no labels are selected.
- The labels-list was taking up vertical space, even if no labels were
selected which caused an inconsistency in how the sidebar looked.
- Adds integration test
(cherry picked from commit 013b89eb13
)
13 lines
464 B
Go HTML Template
13 lines
464 B
Go HTML Template
<div class="ui labels list">
|
|
<span class="no-select item {{if .root.HasSelectedLabel}}tw-hidden{{end}}">{{ctx.Locale.Tr "repo.issues.new.no_label"}}</span>
|
|
{{if .root.HasSelectedLabel}}
|
|
<span class="labels-list">
|
|
{{range .root.Labels}}
|
|
{{template "repo/issue/labels/label" dict "root" $.root "label" .}}
|
|
{{end}}
|
|
{{range .root.OrgLabels}}
|
|
{{template "repo/issue/labels/label" dict "root" $.root "label" .}}
|
|
{{end}}
|
|
</span>
|
|
{{end}}
|
|
</div>
|