<!-- | |
~ Licensed to the Apache Software Foundation (ASF) under one or more | |
~ contributor license agreements. See the NOTICE file distributed with | |
~ this work for additional information regarding copyright ownership. | |
~ The ASF licenses this file to You under the Apache License, Version 2.0 | |
~ (the "License"); you may not use this file except in compliance with | |
~ the License. You may obtain a copy of the License at | |
~ | |
~ http://www.apache.org/licenses/LICENSE-2.0 | |
~ | |
~ Unless required by applicable law or agreed to in writing, software | |
~ distributed under the License is distributed on an "AS IS" BASIS, | |
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
~ See the License for the specific language governing permissions and | |
~ limitations under the License. | |
--> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
#set ( $alert = $alertList[0] ) | |
## Generate Alert Color | |
#set($alertColor = "#337ab7") | |
#if($alert["alertSeverity"] == "WARNING") | |
#set($alertColor = "#FF9F00") | |
#elseif($alert["alertSeverity"] == "CRITICAL" || $alert["alertSeverity"] == "FETAL") | |
#set($alertColor = "#d43f3a") | |
#elseif ($alert["alertSeverity"] == "OK") | |
#set($alertColor = "#68B90F") | |
#end | |
<html xmlns="http://www.w3.org/1999/xhtml" | |
style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | |
<head> | |
<meta name="viewport" content="width=device-width"/> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | |
<title>[$alert["alertSeverity"] $alert["alertSubject"]</title> | |
<style type="text/css"> | |
img { | |
max-width: 100%; | |
} | |
body { | |
-webkit-font-smoothing: antialiased; | |
-webkit-text-size-adjust: none; | |
width: 100% !important; | |
height: 100%; | |
line-height: 1.6em; | |
} | |
body { | |
background-color: #f6f6f6; | |
} | |
@media only screen and (max-width: 640px) { | |
body { | |
padding: 0 !important; | |
} | |
h1 { | |
font-weight: 800 !important; | |
margin: 20px 0 5px !important; | |
} | |
h2 { | |
font-weight: 800 !important; | |
margin: 20px 0 5px !important; | |
} | |
h3 { | |
font-weight: 800 !important; | |
margin: 20px 0 5px !important; | |
} | |
h4 { | |
font-weight: 800 !important; | |
margin: 20px 0 5px !important; | |
} | |
h1 { | |
font-size: 22px !important; | |
} | |
h2 { | |
font-size: 18px !important; | |
} | |
h3 { | |
font-size: 16px !important; | |
} | |
.container { | |
padding: 0 !important; | |
width: 100% !important; | |
} | |
.content { | |
padding: 0 !important; | |
} | |
.content-wrap { | |
padding: 10px !important; | |
} | |
.invoice { | |
width: 100% !important; | |
} | |
} | |
</style> | |
</head> | |
<body itemscope itemtype="http://schema.org/EmailMessage" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none; width: 100% !important; height: 100%; line-height: 1.6em; background-color: #f6f6f6; margin: 0;" | |
bgcolor="#f6f6f6"> | |
<table class="body-wrap" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; background-color: #f6f6f6; margin: 0;" | |
bgcolor="#f6f6f6"> | |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | |
<td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" | |
valign="top"></td> | |
<td class="container" width="600" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; display: block !important; max-width: 600px !important; clear: both !important; margin: 0 auto;" | |
valign="top"> | |
<div class="content" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; max-width: 600px; display: block; margin: 0 auto; padding: 20px;"> | |
<table class="main" width="100%" cellpadding="0" cellspacing="0" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; border-radius: 3px; background-color: #fff; margin: 0; border: 1px solid #e9e9e9;" | |
bgcolor="#fff"> | |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | |
<td class="alert alert-warning" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 16px; vertical-align: top; color: #fff; font-weight: 500; text-align: center; border-radius: 3px 3px 0 0; background-color: $alertColor; margin: 0; padding: 20px;" | |
align="center" bgcolor="$alertColor" valign="top"> | |
<strong >$alert["alertSeverity"]: </strong> | |
$alert["alertSubject"] | |
</td> | |
</tr> | |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | |
<td class="content-wrap" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 20px;" | |
valign="top"> | |
<table width="100%" cellpadding="0" cellspacing="0" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | |
<td class="content-block" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" | |
valign="top"> | |
<small>CATEGORY:</small> <strong style="color: $alertColor">#if($alert["alertCategory"]) $alert["alertCategory"] #else N/A #end</strong> <small>CREATE TIME:</small> <strong>$alert["alertTime"]</strong> | |
</td> | |
</tr> | |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | |
<td class="content-block" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0 4px; padding: 10px 10px; background-color: #eee;" | |
valign="top"> | |
<div style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top;"> | |
$alert["alertBody"] | |
</div> | |
</td> | |
</tr> | |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | |
<td class="content-block aligncenter" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; text-align: center; margin: 0; padding: 0 0 10px;" | |
align="center" valign="top"> | |
<table class="invoice" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; text-align: left; width: 90%; margin: 10px auto;"> | |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | |
<td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 5px 0;" | |
valign="top"> | |
<table class="invoice-items" cellpadding="0" cellspacing="0" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; margin: 0;"> | |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | |
<td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 5px 0;" | |
valign="top"> | |
Severity | |
</td> | |
<td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 5px 0;" | |
valign="top"> $alert["alertSeverity"] | |
</td> | |
</tr> | |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | |
<td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; border-top-width: 1px; border-top-color: #eee; border-top-style: solid; margin: 0; padding: 5px 0;" | |
valign="top">Category | |
</td> | |
<td class="alignright" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; text-align: left; border-top-width: 1px; border-top-color: #eee; border-top-style: solid; margin: 0; padding: 5px 0;" | |
align="right" valign="top"> | |
#if($alert["alertCategory"]) | |
$alert["alertCategory"] | |
#else | |
N/A | |
#end | |
</td> | |
</tr> | |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | |
<td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; border-top-width: 1px; border-top-color: #eee; border-top-style: solid; margin: 0; padding: 5px 0;" | |
valign="top">Cluster | |
</td> | |
<td class="alignright" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; text-align: left; border-top-width: 1px; border-top-color: #eee; border-top-style: solid; margin: 0; padding: 5px 0;" | |
align="right" valign="top">$alert["siteId"] | |
</td> | |
</tr> | |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | |
<td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; border-top-width: 1px; border-top-color: #eee; border-top-style: solid; margin: 0; padding: 5px 0;" | |
valign="top">Policy | |
</td> | |
<td class="alignright" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; text-align: left; border-top-width: 1px; border-top-color: #eee; border-top-style: solid; margin: 0; padding: 5px 0;" | |
align="right" valign="top"><a | |
href="$alert["policyDetailUrl"]" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; color: #999; text-decoration: underline; margin: 0;">$alert[ | |
"policyId"]</a> | |
</td> | |
</tr> | |
</table> | |
</td> | |
</tr> | |
</table> | |
</td> | |
</tr> | |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | |
<td class="content-block" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0; padding: 0 0 20px;" | |
valign="top"> | |
<a href="$alert["alertDetailUrl"]" class="btn-primary" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; color: #FFF; text-decoration: none; line-height: 2em; font-weight: bold; text-align: center; cursor: pointer; display: inline-block; border-radius: 5px; text-transform: capitalize; background-color: $alertColor; margin: 0; border-color: $alertColor; border-style: solid; border-width: 10px 20px;"> | |
View Alert Details | |
</a> | |
</td> | |
</tr> | |
</table> | |
</td> | |
</tr> | |
</table> | |
<div class="footer" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; width: 100%; clear: both; color: #999; margin: 0; padding: 20px;"> | |
<table width="100%" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | |
<tr style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; margin: 0;"> | |
<td class="aligncenter content-block" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 12px; vertical-align: top; color: #999; text-align: center; margin: 0; padding: 0 0 20px;" | |
align="center" valign="top"> | |
Powered by <a href="http://eagle.incubator.apache.org" | |
style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 12px; color: #999; text-decoration: underline; margin: 0;">Apache | |
Eagle</a> (version: $alert["version"]) | |
</td> | |
</tr> | |
</table> | |
</div> | |
</div> | |
</td> | |
<td style="font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; box-sizing: border-box; font-size: 14px; vertical-align: top; margin: 0;" | |
valign="top"></td> | |
</tr> | |
</table> | |
</body> | |
</html> |