Skip to content

Commit bd7f218

Browse files
committed
fix label ctx
1 parent 0bc8bb3 commit bd7f218

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

templates/repo/issue/labels/labels_sidebar.tmpl

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<div class="ui labels list">
2-
<span class="no-select item {{if .ctx.HasSelectedLabel}}gt-hidden{{end}}">{{.ctx.locale.Tr "repo.issues.new.no_label"}}</span>
2+
<span class="no-select item {{if .root.HasSelectedLabel}}gt-hidden{{end}}">{{.root.locale.Tr "repo.issues.new.no_label"}}</span>
33
<span class="labels-list">
4-
{{range .ctx.Labels}}
4+
{{range .root.Labels}}
55
{{template "repo/issue/labels/label" dict "root" $.root "label" .}}
66
{{end}}
7-
{{range .ctx.OrgLabels}}
7+
{{range .root.OrgLabels}}
88
{{template "repo/issue/labels/label" dict "root" $.root "label" .}}
99
{{end}}
1010
</span>

templates/repo/issue/new_form.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
{{end}}
8181
</div>
8282
</div>
83-
{{template "repo/issue/labels/labels_sidebar" dict "root" $ "ctx" .}}
83+
{{template "repo/issue/labels/labels_sidebar" dict "root" $}}
8484

8585
<div class="ui divider"></div>
8686

templates/repo/issue/view_content/sidebar.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
{{end}}
150150
</div>
151151
</div>
152-
{{template "repo/issue/labels/labels_sidebar" dict "root" $ "ctx" .}}
152+
{{template "repo/issue/labels/labels_sidebar" dict "root" $}}
153153

154154
<div class="ui divider"></div>
155155

0 commit comments

Comments
 (0)