Skip to content

Commit

Permalink
rename 'ctx' to 'Context'
Browse files Browse the repository at this point in the history
  • Loading branch information
Zettat123 committed Feb 24, 2023
1 parent 7ade2d9 commit 8aca14b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions templates/repo/issue/comment_tab.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<input type="hidden" name="template-file" value="{{.TemplateFile}}">
{{range .Fields}}
{{if eq .Type "input"}}
{{template "repo/issue/fields/input" Dict "ctx" $.Context "item" .}}
{{template "repo/issue/fields/input" Dict "Context" $.Context "item" .}}
{{else if eq .Type "markdown"}}
{{template "repo/issue/fields/markdown" Dict "ctx" $.Context "item" .}}
{{template "repo/issue/fields/markdown" Dict "Context" $.Context "item" .}}
{{else if eq .Type "textarea"}}
{{template "repo/issue/fields/textarea" Dict "ctx" $.Context "item" .}}
{{template "repo/issue/fields/textarea" Dict "Context" $.Context "item" .}}
{{else if eq .Type "dropdown"}}
{{template "repo/issue/fields/dropdown" Dict "ctx" $.Context "item" .}}
{{template "repo/issue/fields/dropdown" Dict "Context" $.Context "item" .}}
{{else if eq .Type "checkboxes"}}
{{template "repo/issue/fields/checkboxes" Dict "ctx" $.Context "item" .}}
{{template "repo/issue/fields/checkboxes" Dict "Context" $.Context "item" .}}
{{end}}
{{end}}
{{else}}
Expand Down
2 changes: 1 addition & 1 deletion templates/repo/issue/fields/header.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
<h3>{{.item.Attributes.label}}{{if .item.Validations.required}}<label class="required"></label>{{end}}</h3>
{{end}}
{{if .item.Attributes.description}}
<span class="help">{{RenderMarkdownToHtml .ctx .item.Attributes.description}}</span>
<span class="help">{{RenderMarkdownToHtml .Context .item.Attributes.description}}</span>
{{end}}
2 changes: 1 addition & 1 deletion templates/repo/issue/fields/markdown.tmpl
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<div class="field">
<div>{{RenderMarkdownToHtml .ctx .item.Attributes.value}}</div>
<div>{{RenderMarkdownToHtml .Context .item.Attributes.value}}</div>
</div>

0 comments on commit 8aca14b

Please sign in to comment.