|
|
@ -17,25 +17,27 @@ |
|
|
|
<input type="text" placeholder="{{ctx.Locale.Tr "repo.issues.filter_labels"}}"> |
|
|
|
<input type="text" placeholder="{{ctx.Locale.Tr "repo.issues.filter_labels"}}"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<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> |
|
|
|
{{$previousExclusiveScope := "_no_scope"}} |
|
|
|
<div class="scrolling menu"> |
|
|
|
{{range $data.RepoLabels}} |
|
|
|
{{$previousExclusiveScope := "_no_scope"}} |
|
|
|
{{$exclusiveScope := .ExclusiveScope}} |
|
|
|
{{range $data.RepoLabels}} |
|
|
|
{{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}} |
|
|
|
<div class="divider"></div> |
|
|
|
{{template "repo/issue/sidebar/label_list_item" dict "Label" .}} |
|
|
|
{{$previousExclusiveScope = "_no_scope"}} |
|
|
|
{{end}} |
|
|
|
{{range $data.OrgLabels}} |
|
|
|
<div class="divider"></div> |
|
|
|
{{$exclusiveScope := .ExclusiveScope}} |
|
|
|
{{$previousExclusiveScope = "_no_scope"}} |
|
|
|
{{if and (ne $previousExclusiveScope "_no_scope") (ne $previousExclusiveScope $exclusiveScope)}} |
|
|
|
{{range $data.OrgLabels}} |
|
|
|
<div class="divider"></div> |
|
|
|
{{$exclusiveScope := .ExclusiveScope}} |
|
|
|
{{end}} |
|
|
|
{{if and (ne $previousExclusiveScope "_no_scope") (ne $previousExclusiveScope $exclusiveScope)}} |
|
|
|
{{$previousExclusiveScope = $exclusiveScope}} |
|
|
|
<div class="divider"></div> |
|
|
|
{{template "repo/issue/sidebar/label_list_item" dict "Label" .}} |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
{{$previousExclusiveScope = $exclusiveScope}} |
|
|
|
</div> |
|
|
|
{{template "repo/issue/sidebar/label_list_item" dict "Label" .}} |
|
|
|
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|