aboutsummaryrefslogtreecommitdiffstats
path: root/templates/mail/issue/default.tmpl
blob: ee15d6d8e1cc01f156c47e19cd0fdd9b9b60d9fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>{{.Subject}}</title>
</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}}.
			{{else}}
				Empty comment on #{{.Issue.Index}}.
			{{end}}
		{{else}}
			{{.Body | Str2html}}
		{{end -}}
	</p>
	<p>
		---
		<br>
		<a href="{{.Link}}">View it on {{AppName}}</a>.
	</p>
</body>
</html>