-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmailtemplate.ejs
62 lines (56 loc) · 1.23 KB
/
mailtemplate.ejs
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<html>
<body>
Hey <%= addressed_to %>,<br/>
<%= serviceName %>
<% if (instance) { %>
's <%= instance %> instance
<% } %>
has crashed due to an error
<% if (origin) { %>
in <%= origin %>'s methods
<% } %>
<br/>
<table>
<tr>
<td>
<strong>Crash time</strong>
</td>
<td>:</td>
<td>
<%= (new Date()).toUTCString() %>
</td>
</tr>
<tr>
<td>
<strong>Error Message</strong>
</td>
<td>:</td>
<td>
<%= errormessage %>
</td>
</tr>
</table>
<% if (link && link_text) { %>
<br/> <a href="<%= link %>"> <%=link_text%> </a> <br/><br/>
<% } %>
<div style="background: #f8f8f8; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;">
<pre style="margin: 0; line-height: 125%">
<%= stacktrace %>
</pre>
</div>
<% if (link && link_text) { %>
<script type="application/ld+json">
{
"@context": "http://schema.org"
"@type": "EmailMessage",
"action": {
"@type": "ViewAction",
"url": "<%= link %>",
"name": "<%= link_text %>"
},
"description": "<%= link_text %>"
}
</script>
<% } %>
</body>
</html>