2019-11-07 14:34:28 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<title>{{.Subject}}</title>
|
2019-11-15 13:59:21 +01: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 14:34:28 +01:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
{{if .IsMention}}<p>@{{.Doer.Name}} mentioned you:</p>{{end}}
|
|
|
|
<p>
|
|
|
|
{{- 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}}.
|
2019-11-15 13:59:21 +01:00
|
|
|
{{else if ne .ReviewComments}}
|
2019-11-07 14:34:28 +01:00
|
|
|
Empty comment on #{{.Issue.Index}}.
|
|
|
|
{{end}}
|
|
|
|
{{else}}
|
|
|
|
{{.Body | Str2html}}
|
|
|
|
{{end -}}
|
2019-11-15 13:59:21 +01:00
|
|
|
{{- range .ReviewComments}}
|
|
|
|
<div class="review">
|
|
|
|
<pre>{{.Patch}}</pre>
|
|
|
|
<div>{{.RenderedContent | Safe}}</div>
|
|
|
|
</div>
|
|
|
|
{{end -}}
|
2019-11-07 14:34:28 +01:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
---
|
|
|
|
<br>
|
|
|
|
<a href="{{.Link}}">View it on {{AppName}}</a>.
|
|
|
|
</p>
|
|
|
|
</body>
|
|
|
|
</html>
|