|
106 | 106 | <div class="ui divider"></div>
|
107 | 107 | {{end}}
|
108 | 108 |
|
109 |
| - <div class="ui {{if or (not .HasIssuesOrPullsWritePermission) .Repository.IsArchived}}disabled{{end}} floating jump select-label dropdown"> |
110 |
| - <a class="text gt-df gt-ac muted"> |
111 |
| - <strong>{{.locale.Tr "repo.issues.new.labels"}}</strong> |
112 |
| - {{if and .HasIssuesOrPullsWritePermission (not .Repository.IsArchived)}} |
113 |
| - {{svg "octicon-gear" 16 "gt-ml-2"}} |
114 |
| - {{end}} |
115 |
| - </a> |
116 |
| - <div class="filter menu" data-action="update" data-issue-id="{{$.Issue.ID}}" data-update-url="{{$.RepoLink}}/issues/labels"> |
117 |
| - <div class="header" style="text-transform: none;font-size:16px;">{{.locale.Tr "repo.issues.new.add_labels_title"}}</div> |
118 |
| - {{if or .Labels .OrgLabels}} |
119 |
| - <div class="ui icon search input"> |
120 |
| - <i class="icon gt-df gt-ac gt-jc">{{svg "octicon-search" 16}}</i> |
121 |
| - <input type="text" placeholder="{{.locale.Tr "repo.issues.filter_labels"}}"> |
122 |
| - </div> |
123 |
| - {{end}} |
124 |
| - <a class="no-select item" href="#">{{.locale.Tr "repo.issues.new.clear_labels"}}</a> |
125 |
| - {{if or .Labels .OrgLabels}} |
126 |
| - {{$previousExclusiveScope := "_no_scope"}} |
127 |
| - {{range .Labels}} |
128 |
| - {{$exclusiveScope := .ExclusiveScope}} |
129 |
| - {{if and (ne $previousExclusiveScope "_no_scope") (ne $previousExclusiveScope $exclusiveScope)}} |
130 |
| - <div class="ui divider"></div> |
131 |
| - {{end}} |
132 |
| - {{$previousExclusiveScope = $exclusiveScope}} |
133 |
| - <a class="{{if .IsChecked}}checked{{end}} item" href="#" data-id="{{.ID}}" data-id-selector="#label_{{.ID}}" data-scope="{{$exclusiveScope}}"><span class="octicon-check {{if not .IsChecked}}invisible{{end}}">{{if $exclusiveScope}}{{svg "octicon-dot-fill"}}{{else}}{{svg "octicon-check"}}{{end}}</span> {{RenderLabel $.Context .}} |
134 |
| - {{if .Description}}<br><small class="desc">{{.Description | RenderEmoji $.Context}}</small>{{end}}</a> |
135 |
| - {{end}} |
136 |
| - <div class="ui divider"></div> |
137 |
| - {{$previousExclusiveScope := "_no_scope"}} |
138 |
| - {{range .OrgLabels}} |
139 |
| - {{$exclusiveScope := .ExclusiveScope}} |
140 |
| - {{if and (ne $previousExclusiveScope "_no_scope") (ne $previousExclusiveScope $exclusiveScope)}} |
141 |
| - <div class="ui divider"></div> |
142 |
| - {{end}} |
143 |
| - {{$previousExclusiveScope = $exclusiveScope}} |
144 |
| - <a class="{{if .IsChecked}}checked{{end}} item" href="#" data-id="{{.ID}}" data-id-selector="#label_{{.ID}}" data-scope="{{$exclusiveScope}}"><span class="octicon-check {{if not .IsChecked}}invisible{{end}}">{{if $exclusiveScope}}{{svg "octicon-dot-fill"}}{{else}}{{svg "octicon-check"}}{{end}}</span> {{RenderLabel $.Context .}} |
145 |
| - {{if .Description}}<br><small class="desc">{{.Description | RenderEmoji $.Context}}</small>{{end}}</a> |
146 |
| - {{end}} |
147 |
| - {{else}} |
148 |
| - <div class="header" style="text-transform: none;font-size:14px;">{{.locale.Tr "repo.issues.new.no_items"}}</div> |
149 |
| - {{end}} |
150 |
| - </div> |
151 |
| - </div> |
| 109 | + {{template "repo/issue/labels/labels_selector_field" .}} |
152 | 110 | {{template "repo/issue/labels/labels_sidebar" dict "root" $}}
|
153 | 111 |
|
154 | 112 | <div class="ui divider"></div>
|
|
0 commit comments