mirror of
https://github.com/go-gitea/gitea
synced 2025-01-18 11:07:43 +01:00
Fix labels display
This commit is contained in:
parent
96d44e58fd
commit
0559ea0921
@ -19,23 +19,15 @@
|
|||||||
<a class="item clear-selection" href="#">{{ctx.Locale.Tr "repo.issues.new.clear_labels"}}</a>
|
<a class="item clear-selection" href="#">{{ctx.Locale.Tr "repo.issues.new.clear_labels"}}</a>
|
||||||
<div class="scrolling menu">
|
<div class="scrolling menu">
|
||||||
{{$previousExclusiveScope := "_no_scope"}}
|
{{$previousExclusiveScope := "_no_scope"}}
|
||||||
{{range $data.RepoLabels}}
|
{{range $data.AllLabels}}
|
||||||
{{$exclusiveScope := .ExclusiveScope}}
|
{{if or (not .IsArchived) (.IsChecked)}}
|
||||||
{{if and (ne $previousExclusiveScope "_no_scope") (ne $previousExclusiveScope $exclusiveScope)}}
|
{{$exclusiveScope := .ExclusiveScope}}
|
||||||
<div class="divider"></div>
|
{{if and (ne $previousExclusiveScope "_no_scope") (ne $previousExclusiveScope $exclusiveScope)}}
|
||||||
|
<div class="divider"></div>
|
||||||
|
{{end}}
|
||||||
|
{{$previousExclusiveScope = $exclusiveScope}}
|
||||||
|
{{template "repo/issue/sidebar/label_list_item" dict "Label" .}}
|
||||||
{{end}}
|
{{end}}
|
||||||
{{$previousExclusiveScope = $exclusiveScope}}
|
|
||||||
{{template "repo/issue/sidebar/label_list_item" dict "Label" .}}
|
|
||||||
{{end}}
|
|
||||||
{{if and $data.RepoLabels $data.OrgLabels}}<div class="divider"></div>{{end}}
|
|
||||||
{{$previousExclusiveScope = "_no_scope"}}
|
|
||||||
{{range $data.OrgLabels}}
|
|
||||||
{{$exclusiveScope := .ExclusiveScope}}
|
|
||||||
{{if and (ne $previousExclusiveScope "_no_scope") (ne $previousExclusiveScope $exclusiveScope)}}
|
|
||||||
<div class="divider"></div>
|
|
||||||
{{end}}
|
|
||||||
{{$previousExclusiveScope = $exclusiveScope}}
|
|
||||||
{{template "repo/issue/sidebar/label_list_item" dict "Label" .}}
|
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user