|
50 | 50 | </div>
|
51 | 51 | <span class="info">{{.locale.Tr "repo.issues.filter_label_exclude" | Safe}}</span>
|
52 | 52 | <a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&assignee={{$.AssigneeID}}&poster={{$.PosterID}}">{{.locale.Tr "repo.issues.filter_label_no_select"}}</a>
|
53 |
| - {{$previousExclusiveScope := "_no_scope"}} |
| 53 | + {{$previousScope := "_no_scope"}} |
54 | 54 | {{range .Labels}}
|
55 |
| - {{$exclusiveScope := .ExclusiveScope}} |
56 |
| - {{if and (ne $previousExclusiveScope "_no_scope") (ne $previousExclusiveScope $exclusiveScope)}} |
| 55 | + {{$scope := .Scope}} |
| 56 | + {{if and (ne $previousScope "_no_scope") (ne $previousScope $scope)}} |
57 | 57 | <div class="ui divider"></div>
|
58 | 58 | {{end}}
|
59 |
| - {{$previousExclusiveScope = $exclusiveScope}} |
60 |
| - <a class="item label-filter-item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.QueryString}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&assignee={{$.AssigneeID}}&poster={{$.PosterID}}" data-label-id="{{.ID}}">{{if .IsExcluded}}{{svg "octicon-circle-slash"}}{{else if .IsSelected}}{{if $exclusiveScope}}{{svg "octicon-dot-fill"}}{{else}}{{svg "octicon-check"}}{{end}}{{end}} {{RenderLabel .}}</a> |
| 59 | + {{$previousScope = $scope}} |
| 60 | + <a class="item label-filter-item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.QueryString}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&assignee={{$.AssigneeID}}&poster={{$.PosterID}}" data-label-id="{{.ID}}">{{if .IsExcluded}}{{svg "octicon-circle-slash"}}{{else if .IsSelected}}{{if .ExclusiveScope}}{{svg "octicon-dot-fill"}}{{else}}{{svg "octicon-check"}}{{end}}{{end}} {{RenderLabel .}}</a> |
61 | 61 | {{end}}
|
62 | 62 | </div>
|
63 | 63 | </div>
|
|
224 | 224 | {{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
225 | 225 | </span>
|
226 | 226 | <div class="menu">
|
227 |
| - {{$previousExclusiveScope := "_no_scope"}} |
| 227 | + {{$previousScope := "_no_scope"}} |
228 | 228 | {{range .Labels}}
|
229 |
| - {{$exclusiveScope := .ExclusiveScope}} |
230 |
| - {{if and (ne $previousExclusiveScope "_no_scope") (ne $previousExclusiveScope $exclusiveScope)}} |
| 229 | + {{$scope := .Scope}} |
| 230 | + {{if and (ne $previousScope "_no_scope") (ne $previousScope $scope)}} |
231 | 231 | <div class="ui divider"></div>
|
232 | 232 | {{end}}
|
233 |
| - {{$previousExclusiveScope = $exclusiveScope}} |
| 233 | + {{$previousScope = $scope}} |
234 | 234 | <div class="item issue-action" data-action="toggle" data-element-id="{{.ID}}" data-url="{{$.RepoLink}}/issues/labels">
|
235 |
| - {{if contain $.SelLabelIDs .ID}}{{if $exclusiveScope}}{{svg "octicon-dot-fill"}}{{else}}{{svg "octicon-check"}}{{end}}{{end}} {{RenderLabel .}} |
| 235 | + {{if contain $.SelLabelIDs .ID}}{{if .ExclusiveScope}}{{svg "octicon-dot-fill"}}{{else}}{{svg "octicon-check"}}{{end}}{{end}} {{RenderLabel .}} |
236 | 236 | </div>
|
237 | 237 | {{end}}
|
238 | 238 | </div>
|
|
0 commit comments