mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-04 08:17:24 -05:00
Fix issue with issue default mail template (#16956)
The mail template rendering was failing with the error - `...vices/mailer/mail.go:301:composeIssueCommentMessages() [E] ExecuteTemplate [issue/default/body]: template: issue/default:65:10: executing "issue/default" at <.i18n.Tr>: can't evaluate field i18n in type *models.Comment` The issue was the template variable i18n is available in the outer scope. Fix #16877
This commit is contained in:
parent
5a73153493
commit
4c7a70b348
@ -62,7 +62,7 @@
|
|||||||
{{end -}}
|
{{end -}}
|
||||||
{{- range .ReviewComments}}
|
{{- range .ReviewComments}}
|
||||||
<hr>
|
<hr>
|
||||||
{{.i18n.Tr "mail.issue.in_tree_path" .TreePath}}
|
{{$.i18n.Tr "mail.issue.in_tree_path" .TreePath}}
|
||||||
<div class="review">
|
<div class="review">
|
||||||
<pre>{{.Patch}}</pre>
|
<pre>{{.Patch}}</pre>
|
||||||
<div>{{.RenderedContent | Safe}}</div>
|
<div>{{.RenderedContent | Safe}}</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user