From 9930d47be2516ba4dc33ddfc382f9a829628929d Mon Sep 17 00:00:00 2001 From: guillep2k <18600385+guillep2k@users.noreply.github.com> Date: Fri, 15 Nov 2019 09:59:21 -0300 Subject: Add review comments to mail notifications (#8996) --- templates/mail/issue/default.tmpl | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'templates/mail') diff --git a/templates/mail/issue/default.tmpl b/templates/mail/issue/default.tmpl index ee15d6d8e1..223ff7ffdc 100644 --- a/templates/mail/issue/default.tmpl +++ b/templates/mail/issue/default.tmpl @@ -3,6 +3,12 @@ {{.Subject}} + {{if .ReviewComments}} + + {{end}} @@ -15,12 +21,18 @@ Closed #{{.Issue.Index}}. {{else if eq .ActionName "reopen"}} Reopened #{{.Issue.Index}}. - {{else}} + {{else if ne .ReviewComments}} Empty comment on #{{.Issue.Index}}. {{end}} {{else}} {{.Body | Str2html}} {{end -}} + {{- range .ReviewComments}} +
+
{{.Patch}}
+
{{.RenderedContent | Safe}}
+
+ {{end -}}

--- -- cgit v1.2.3