From 8aca14b6e26c0702e67c25f57c4067eb86644be8 Mon Sep 17 00:00:00 2001 From: Zettat123 Date: Fri, 24 Feb 2023 10:56:19 +0800 Subject: [PATCH] rename 'ctx' to 'Context' --- templates/repo/issue/comment_tab.tmpl | 10 +++++----- templates/repo/issue/fields/header.tmpl | 2 +- templates/repo/issue/fields/markdown.tmpl | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/repo/issue/comment_tab.tmpl b/templates/repo/issue/comment_tab.tmpl index 7d2cac1d1459..b04a3c6bbbb4 100644 --- a/templates/repo/issue/comment_tab.tmpl +++ b/templates/repo/issue/comment_tab.tmpl @@ -2,15 +2,15 @@ {{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}} diff --git a/templates/repo/issue/fields/header.tmpl b/templates/repo/issue/fields/header.tmpl index da6ad1852677..6034fed5fd23 100644 --- a/templates/repo/issue/fields/header.tmpl +++ b/templates/repo/issue/fields/header.tmpl @@ -2,5 +2,5 @@

{{.item.Attributes.label}}{{if .item.Validations.required}}{{end}}

{{end}} {{if .item.Attributes.description}} - {{RenderMarkdownToHtml .ctx .item.Attributes.description}} + {{RenderMarkdownToHtml .Context .item.Attributes.description}} {{end}} diff --git a/templates/repo/issue/fields/markdown.tmpl b/templates/repo/issue/fields/markdown.tmpl index 7e4288fec8ff..fd5b6afd227f 100644 --- a/templates/repo/issue/fields/markdown.tmpl +++ b/templates/repo/issue/fields/markdown.tmpl @@ -1,3 +1,3 @@
-
{{RenderMarkdownToHtml .ctx .item.Attributes.value}}
+
{{RenderMarkdownToHtml .Context .item.Attributes.value}}