mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 05:24:35 +01:00
b39fab41c8
* Some more e-mail notification fixes A few more small e-mail notification fixes/changes * Style footer of notification email to be smaller * Include text for when pull request is merged * Don't include original body of issue or PR when merging/closing by setting issue.Content to "" in these cases * Set Re: prefix and meessage-ID headers based on actName instead of checking for a comment. This fixes a bug where certain actions that didn't have a comment were setting Message-ID instead of In-Reply-To which caused some mail programs not to show those messages as they would have had the same Message-ID as a previous message. Also fixes the case where a final comment and closing message would have been displayed out of order if you didn't have a copy of the original issue/pr cretion message. * Update other template footers for consistency
58 lines
1.4 KiB
Cheetah
58 lines
1.4 KiB
Cheetah
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>{{.Subject}}</title>
|
|
|
|
<style>
|
|
.footer { font-size:small; color:#666;}
|
|
{{if .ReviewComments}}
|
|
.review { padding-left: 1em; margin: 1em 0; }
|
|
.review > pre { padding: 1em; border-left: 1px solid grey; }
|
|
{{end}}
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
{{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 "merge"}}
|
|
Merged #{{.Issue.Index}} into {{.Issue.PullRequest.BaseBranch}}.
|
|
{{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}}.
|
|
{{end}}
|
|
{{else}}
|
|
{{.Body | Str2html}}
|
|
{{end -}}
|
|
{{- range .ReviewComments}}
|
|
<hr>
|
|
In {{.TreePath}}:
|
|
<div class="review">
|
|
<pre>{{.Patch}}</pre>
|
|
<div>{{.RenderedContent | Safe}}</div>
|
|
</div>
|
|
{{end -}}
|
|
</p>
|
|
<div class="footer">
|
|
<p>
|
|
---
|
|
<br>
|
|
<a href="{{.Link}}">View it on {{AppName}}</a>.
|
|
</p>
|
|
</div>
|
|
</body>
|
|
</html>
|