Skip to content

Commit 8aca14b

Browse files
committed
rename 'ctx' to 'Context'
1 parent 7ade2d9 commit 8aca14b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

templates/repo/issue/comment_tab.tmpl

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<input type="hidden" name="template-file" value="{{.TemplateFile}}">
33
{{range .Fields}}
44
{{if eq .Type "input"}}
5-
{{template "repo/issue/fields/input" Dict "ctx" $.Context "item" .}}
5+
{{template "repo/issue/fields/input" Dict "Context" $.Context "item" .}}
66
{{else if eq .Type "markdown"}}
7-
{{template "repo/issue/fields/markdown" Dict "ctx" $.Context "item" .}}
7+
{{template "repo/issue/fields/markdown" Dict "Context" $.Context "item" .}}
88
{{else if eq .Type "textarea"}}
9-
{{template "repo/issue/fields/textarea" Dict "ctx" $.Context "item" .}}
9+
{{template "repo/issue/fields/textarea" Dict "Context" $.Context "item" .}}
1010
{{else if eq .Type "dropdown"}}
11-
{{template "repo/issue/fields/dropdown" Dict "ctx" $.Context "item" .}}
11+
{{template "repo/issue/fields/dropdown" Dict "Context" $.Context "item" .}}
1212
{{else if eq .Type "checkboxes"}}
13-
{{template "repo/issue/fields/checkboxes" Dict "ctx" $.Context "item" .}}
13+
{{template "repo/issue/fields/checkboxes" Dict "Context" $.Context "item" .}}
1414
{{end}}
1515
{{end}}
1616
{{else}}

templates/repo/issue/fields/header.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
<h3>{{.item.Attributes.label}}{{if .item.Validations.required}}<label class="required"></label>{{end}}</h3>
33
{{end}}
44
{{if .item.Attributes.description}}
5-
<span class="help">{{RenderMarkdownToHtml .ctx .item.Attributes.description}}</span>
5+
<span class="help">{{RenderMarkdownToHtml .Context .item.Attributes.description}}</span>
66
{{end}}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<div class="field">
2-
<div>{{RenderMarkdownToHtml .ctx .item.Attributes.value}}</div>
2+
<div>{{RenderMarkdownToHtml .Context .item.Attributes.value}}</div>
33
</div>

0 commit comments

Comments
 (0)