diff --git a/templates/mail/issue/default.tmpl b/templates/mail/issue/default.tmpl index 223ff7ffd..71291c61b 100644 --- a/templates/mail/issue/default.tmpl +++ b/templates/mail/issue/default.tmpl @@ -12,22 +12,30 @@ - {{if .IsMention}}

@{{.Doer.Name}} mentioned you:

{{end}} + {{if .IsMention}}

@{{.Doer.Name}} mentioned you:

{{end}}

+ {{if eq .ActionName "close"}} + Closed #{{.Issue.Index}}. + {{else if eq .ActionName "reopen"}} + Reopened #{{.Issue.Index}}. + {{else if eq .ActionName "approve"}} + @{{.Doer.Name}} approved this pull request. + {{else if eq .ActionName "reject"}} + @{{.Doer.Name}} requested changes on this pull request. + {{else if eq .ActionName "review"}} + @{{.Doer.Name}} commented on this pull request. + {{end}} + {{- if eq .Body ""}} {{if eq .ActionName "new"}} Created #{{.Issue.Index}}. - {{else if eq .ActionName "close"}} - Closed #{{.Issue.Index}}. - {{else if eq .ActionName "reopen"}} - Reopened #{{.Issue.Index}}. - {{else if ne .ReviewComments}} - Empty comment on #{{.Issue.Index}}. {{end}} {{else}} {{.Body | Str2html}} {{end -}} {{- range .ReviewComments}} +


+ In {{.TreePath}}:
{{.Patch}}
{{.RenderedContent | Safe}}