Skip to content

Commit 4f551af

Browse files
committed
Fix labels display
1 parent 6bd70d4 commit 4f551af

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

templates/repo/issue/sidebar/label_list.tmpl

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,15 @@
1919
<a class="item clear-selection" href="#">{{ctx.Locale.Tr "repo.issues.new.clear_labels"}}</a>
2020
<div class="scrolling menu">
2121
{{$previousExclusiveScope := "_no_scope"}}
22-
{{range $data.RepoLabels}}
23-
{{$exclusiveScope := .ExclusiveScope}}
24-
{{if and (ne $previousExclusiveScope "_no_scope") (ne $previousExclusiveScope $exclusiveScope)}}
25-
<div class="divider"></div>
22+
{{range $data.AllLabels}}
23+
{{if or (not .IsArchived) (.IsChecked)}}
24+
{{$exclusiveScope := .ExclusiveScope}}
25+
{{if and (ne $previousExclusiveScope "_no_scope") (ne $previousExclusiveScope $exclusiveScope)}}
26+
<div class="divider"></div>
27+
{{end}}
28+
{{$previousExclusiveScope = $exclusiveScope}}
29+
{{template "repo/issue/sidebar/label_list_item" dict "Label" .}}
2630
{{end}}
27-
{{$previousExclusiveScope = $exclusiveScope}}
28-
{{template "repo/issue/sidebar/label_list_item" dict "Label" .}}
29-
{{end}}
30-
{{if and $data.RepoLabels $data.OrgLabels}}<div class="divider"></div>{{end}}
31-
{{$previousExclusiveScope = "_no_scope"}}
32-
{{range $data.OrgLabels}}
33-
{{$exclusiveScope := .ExclusiveScope}}
34-
{{if and (ne $previousExclusiveScope "_no_scope") (ne $previousExclusiveScope $exclusiveScope)}}
35-
<div class="divider"></div>
36-
{{end}}
37-
{{$previousExclusiveScope = $exclusiveScope}}
38-
{{template "repo/issue/sidebar/label_list_item" dict "Label" .}}
3931
{{end}}
4032
</div>
4133
{{end}}

0 commit comments

Comments
 (0)