|
34 | 34 | <div class="four wide column">
|
35 | 35 | <div class="ui segment metas">
|
36 | 36 | {{template "repo/issue/branch_selector_field" .}}
|
37 |
| - |
38 |
| - <input id="label_ids" name="label_ids" type="hidden" value="{{.label_ids}}"> |
39 |
| - <div class="ui {{if not .HasIssuesOrPullsWritePermission}}disabled{{end}} floating jump select-label dropdown"> |
40 |
| - <span class="text"> |
41 |
| - <strong>{{.locale.Tr "repo.issues.new.labels"}}</strong> |
42 |
| - {{if .HasIssuesOrPullsWritePermission}} |
43 |
| - {{svg "octicon-gear"}} |
44 |
| - {{end}} |
45 |
| - </span> |
46 |
| - <div class="filter menu" data-id="#label_ids"> |
47 |
| - <div class="header" style="text-transform: none;font-size:16px;">{{.locale.Tr "repo.issues.new.add_labels_title"}}</div> |
48 |
| - {{if or .Labels .OrgLabels}} |
49 |
| - <div class="ui icon search input"> |
50 |
| - <i class="icon gt-df gt-ac gt-jc">{{svg "octicon-search" 16}}</i> |
51 |
| - <input type="text" placeholder="{{.locale.Tr "repo.issues.filter_labels"}}"> |
52 |
| - </div> |
53 |
| - {{end}} |
54 |
| - <div class="no-select item">{{.locale.Tr "repo.issues.new.clear_labels"}}</div> |
55 |
| - {{if or .Labels .OrgLabels}} |
56 |
| - {{$previousExclusiveScope := "_no_scope"}} |
57 |
| - {{range .Labels}} |
58 |
| - {{$exclusiveScope := .ExclusiveScope}} |
59 |
| - {{if and (ne $previousExclusiveScope "_no_scope") (ne $previousExclusiveScope $exclusiveScope)}} |
60 |
| - <div class="ui divider"></div> |
61 |
| - {{end}} |
62 |
| - {{$previousExclusiveScope = $exclusiveScope}} |
63 |
| - <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 .}} |
64 |
| - {{if .Description}}<br><small class="desc">{{.Description | RenderEmoji}}</small>{{end}}</a> |
65 |
| - {{end}} |
66 |
| - |
67 |
| - <div class="ui divider"></div> |
68 |
| - {{$previousExclusiveScope := "_no_scope"}} |
69 |
| - {{range .OrgLabels}} |
70 |
| - {{$exclusiveScope := .ExclusiveScope}} |
71 |
| - {{if and (ne $previousExclusiveScope "_no_scope") (ne $previousExclusiveScope $exclusiveScope)}} |
72 |
| - <div class="ui divider"></div> |
73 |
| - {{end}} |
74 |
| - {{$previousExclusiveScope = $exclusiveScope}} |
75 |
| - <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 .}} |
76 |
| - {{if .Description}}<br><small class="desc">{{.Description | RenderEmoji}}</small>{{end}}</a> |
77 |
| - {{end}} |
78 |
| - {{else}} |
79 |
| - <div class="header" style="text-transform: none;font-size:14px;">{{.locale.Tr "repo.issues.new.no_items"}}</div> |
80 |
| - {{end}} |
81 |
| - </div> |
82 |
| - </div> |
| 37 | + {{template "repo/issue/labels/labels_selector_field" .}} |
83 | 38 | {{template "repo/issue/labels/labels_sidebar" dict "root" $ "ctx" .}}
|
84 | 39 |
|
85 | 40 | <div class="ui divider"></div>
|
|
0 commit comments