2019-11-07 08:34:28 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<title>{{.Subject}}</title>
|
2019-11-15 07:59:21 -05:00
|
|
|
{{if .ReviewComments}}
|
|
|
|
<style>
|
|
|
|
.review { padding-left: 1em; margin: 1em 0; }
|
|
|
|
.review > pre { padding: 1em; border-left: 1px solid grey; }
|
|
|
|
</style>
|
|
|
|
{{end}}
|
2019-11-07 08:34:28 -05:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2019-12-31 14:30:46 -05:00
|
|
|
{{if .IsMention}}<p><b>@{{.Doer.Name}}</b> mentioned you:</p>{{end}}
|
2019-11-07 08:34:28 -05:00
|
|
|
<p>
|
2019-12-31 14:30:46 -05:00
|
|
|
{{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}}
|
|
|
|
|
2019-11-07 08:34:28 -05:00
|
|
|
{{- if eq .Body ""}}
|
|
|
|
{{if eq .ActionName "new"}}
|
|
|
|
Created #{{.Issue.Index}}.
|
|
|
|
{{end}}
|
|
|
|
{{else}}
|
|
|
|
{{.Body | Str2html}}
|
|
|
|
{{end -}}
|
2019-11-15 07:59:21 -05:00
|
|
|
{{- range .ReviewComments}}
|
2019-12-31 14:30:46 -05:00
|
|
|
<hr>
|
|
|
|
In {{.TreePath}}:
|
2019-11-15 07:59:21 -05:00
|
|
|
<div class="review">
|
|
|
|
<pre>{{.Patch}}</pre>
|
|
|
|
<div>{{.RenderedContent | Safe}}</div>
|
|
|
|
</div>
|
|
|
|
{{end -}}
|
2019-11-07 08:34:28 -05:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
---
|
|
|
|
<br>
|
|
|
|
<a href="{{.Link}}">View it on {{AppName}}</a>.
|
|
|
|
</p>
|
|
|
|
</body>
|
|
|
|
</html>
|