Permalink
Browse files

email plugin : up template

  • Loading branch information...
1 parent 0fc1e71 commit 1f33067f3fd53b85c86c9614cfc64f2dede3c188 @greggythefly greggythefly committed Jan 10, 2013
Showing with 9 additions and 16 deletions.
  1. +9 −16 plugins/email/views/up.ejs
View
@@ -1,19 +1,12 @@
-<%
-
-if (checkEvent.downtime) {
-
-%>[Up] Check "<%= check.name %>" went back up
+<% if (checkEvent.downtime) { -%>
+[Up] Check "<%= check.name %>" went back up
On <%= moment(checkEvent.timestamp).format('LLLL') %>,
-and after <%= moment.duration(checkEvent.downtime).humanize() %> of downtime,<%
-
-} else {
-
-%>[Up] Check "<%= check.name %>" is now up
-On <%= moment(checkEvent.timestamp).format('LLLL') %>,<%
-
-}
-
-%>a test on URL "<%= check.url %>" responded correctly.
+and after <%= moment.duration(checkEvent.downtime).humanize() %> of downtime,
+<% } else { -%>
+[Up] Check "<%= check.name %>" is now up
+On <%= moment(checkEvent.timestamp).format('LLLL') %>,
+<% }%>
+a test on URL "<%= check.url %>" responded correctly.
<% include details %>
-<% include footer %>
+<% include footer %>

0 comments on commit 1f33067

Please sign in to comment.