summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authormrsdizzie <info@mrsdizzie.com>2019-12-31 14:30:46 -0500
committerLauris BH <lauris@nix.lv>2019-12-31 21:30:46 +0200
commit0989404d2ff1ac4aa0d82e05158f4481474b268e (patch)
tree1accb54ca887a55640873a91289529ea2b1755fc /templates
parent9600c27085df3f895b2128f1b77aa0ce0b57e7f2 (diff)
downloadgitea-0989404d2ff1ac4aa0d82e05158f4481474b268e.tar.gz
gitea-0989404d2ff1ac4aa0d82e05158f4481474b268e.zip
Update default issue template (#9568)
Some small changes: * Include text if approve/comment/request changes on PR * List filename for review comments * Bold username when mentioned This will stop empty body messages when approving PR on gitea.com
Diffstat (limited to 'templates')
-rw-r--r--templates/mail/issue/default.tmpl22
1 files changed, 15 insertions, 7 deletions
diff --git a/templates/mail/issue/default.tmpl b/templates/mail/issue/default.tmpl
index 223ff7ffdc..71291c61bb 100644
--- a/templates/mail/issue/default.tmpl
+++ b/templates/mail/issue/default.tmpl
@@ -12,22 +12,30 @@
</head>
<body>
- {{if .IsMention}}<p>@{{.Doer.Name}} mentioned you:</p>{{end}}
+ {{if .IsMention}}<p><b>@{{.Doer.Name}}</b> mentioned you:</p>{{end}}
<p>
+ {{if eq .ActionName "close"}}
+ Closed #{{.Issue.Index}}.
+ {{else if eq .ActionName "reopen"}}
+ Reopened #{{.Issue.Index}}.
+ {{else if eq .ActionName "approve"}}
+ <b>@{{.Doer.Name}}</b> approved this pull request.
+ {{else if eq .ActionName "reject"}}
+ <b>@{{.Doer.Name}}</b> requested changes on this pull request.
+ {{else if eq .ActionName "review"}}
+ <b>@{{.Doer.Name}}</b> 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}}
+ <hr>
+ In {{.TreePath}}:
<div class="review">
<pre>{{.Patch}}</pre>
<div>{{.RenderedContent | Safe}}</div>