Debian Codegraph @

src/notification/email/templates/host.pm

raw
1 package notification::email::templates::host;
2
3 use strict;
4 use warnings;
5
6 use Exporter qw(import);
7
8 our @EXPORT_OK = qw(get_host_template);
9
10 sub get_host_template {
11 return q{
12 <!doctype html>
13 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"
14 xmlns:o="urn:schemas-microsoft-com:office:office">
15
16 <head>
17 <title></title><!--[if !mso]><!-- -->
18 <meta http-equiv="X-UA-Compatible" content="IE=edge"><!--<![endif]-->
19 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
20 <meta name="viewport" content="width=device-width,initial-scale=1">
21
22 <TMPL_VAR NAME="dynamicCss">
23 </head>
24
25 <body>
26 <div>
27 <!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="notification-box-outlook" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
28 <div class="notification-box" style="Margin:0px auto;max-width:600px;">
29 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
30 <tbody>
31 <tr>
32 <td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;vertical-align:top;">
33 <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="header-outlook" width="600px" ><table align="center" border="0" cellpadding="0" cellspacing="0" class="header-outlook" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
34 <div class="header" style="Margin:0px auto;max-width:600px;">
35 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
36 style="width:100%;">
37 <tbody>
38 <tr>
39 <td
40 style="direction:ltr;font-size:0px;padding:5px 0px 5px 0px;text-align:center;vertical-align:top;">
41 <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="width:600px;" ><![endif]-->
42 <div class="mj-column-per-100 outlook-group-fix"
43 style="font-size:0;line-height:0;text-align:left;display:inline-block;width:100%;direction:ltr;">
44 <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td style="vertical-align:top;width:120px;" ><![endif]-->
45 <div class="mj-column-per-20 outlook-group-fix"
46 style="font-size:13px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:20%;">
47 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
48 <tbody>
49 <tr>
50 <td style="vertical-align:top;padding:0px 0px 0px 0px;">
51 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
52 </table>
53 </td>
54 </tr>
55 </tbody>
56 </table>
57 </div><!--[if mso | IE]></td><td style="vertical-align:top;width:360px;" ><![endif]-->
58 <div class="mj-column-per-60 outlook-group-fix font-header"
59 style="font-size:13px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:60%;">
60 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
61 <tbody>
62 <tr>
63 <td style="vertical-align:top;padding:0px 0px 0px 0px;">
64 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
65 <tr>
66 <td align="center" style="font-size:0px;padding:0px 5px;word-break:break-word;">
67 <div
68 style="font-family:CoconPro-BoldCond, Red Hat Display, Open Sans , Verdana , sans-serif;font-size:15px;line-height:1;text-align:center;color:#000000;">
69 <TMPL_VAR NAME="type"></div>
70 </td>
71 </tr>
72 </table>
73 </td>
74 </tr>
75 </tbody>
76 </table>
77 </div><!--[if mso | IE]></td><td style="vertical-align:top;width:120px;" ><![endif]-->
78 <div class="mj-column-per-20 outlook-group-fix font-header"
79 style="font-size:13px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:20%;">
80 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
81 <tbody>
82 <tr>
83 <td style="vertical-align:top;padding:0px 0px 0px 0px;">
84 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
85 <tr>
86 <td align="right" style="font-size:0px;padding:0px 5px;word-break:break-word;">
87 <div
88 style="font-family:CoconPro-BoldCond, Red Hat Display, Open Sans , Verdana , sans-serif;font-size:15px;line-height:1;text-align:right;color:#000000;">
89 <TMPL_VAR NAME="attempts">/<TMPL_VAR NAME="maxAttempts">
90 </div>
91 </td>
92 </tr>
93 </table>
94 </td>
95 </tr>
96 </tbody>
97 </table>
98 </div><!--[if mso | IE]></td></tr></table><![endif]-->
99 </div><!--[if mso | IE]></td></tr></table><![endif]-->
100 </td>
101 </tr>
102 </tbody>
103 </table>
104 </div>
105 <!--[if mso | IE]></td></tr></table></td></tr><tr><td class="info-resources-outlook" width="600px" ><table align="center" border="0" cellpadding="0" cellspacing="0" class="info-resources-outlook" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
106 <div class="info-resources" style="Margin:0px auto;max-width:600px;">
107 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
108 style="width:100%;">
109 <tbody>
110 <tr>
111 <td
112 style="direction:ltr;font-size:0px;padding:5px 0px 5px 0px;text-align:center;vertical-align:top;">
113 <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
114 <div class="mj-column-per-100 outlook-group-fix"
115 style="font-size:13px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
116 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
117 <tbody>
118 <tr>
119 <td style="vertical-align:top;padding:0px 0px 0px 0px;">
120 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
121 <tr>
122 <td align="left" style="font-size:0px;padding:0px 5px;word-break:break-word;">
123 <div
124 style="font-family:CoconPro-BoldCond, Red Hat Display , Open Sans , Verdana , sans-serif;font-size:15px;line-height:1;text-align:left;color:#000000;">
125 <p>Host:</p>
126 <p class="dynamic">
127 <TMPL_VAR NAME="hostName">
128 <span style="font-weight: normal">is</span>
129 <span class="status">
130 <TMPL_VAR NAME="status">
131 </span>
132 <span style="font-weight: normal">for:</span>
133 <span>
134 <TMPL_VAR NAME="duration">
135 </span>
136 </p>
137 </div>
138 </td>
139 </tr>
140 </table>
141 </td>
142 </tr>
143 </tbody>
144 </table>
145 </div><!--[if mso | IE]></td></tr></table><![endif]-->
146 </td>
147 </tr>
148 </tbody>
149 </table>
150 </div>
151 <!--[if mso | IE]></td></tr></table></td></tr><tr><td class="" width="600px" ><table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
152 <div style="Margin:0px auto;max-width:600px;">
153 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
154 style="width:100%;">
155 <tbody>
156 <tr>
157 <td
158 style="direction:ltr;font-size:0px;padding:5px 0px 5px 0px;text-align:center;vertical-align:top;">
159 <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
160 <div class="mj-column-per-100 outlook-group-fix"
161 style="font-size:13px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
162 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
163 <tbody>
164 <tr>
165 <td style="vertical-align:top;padding:0px 0px 0px 0px;">
166 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
167 <tr>
168 <td align="left" style="font-size:0px;padding:0px 5px;word-break:break-word;">
169 <div
170 style="font-family:CoconPro-BoldCond, Red Hat Display , Open Sans , Verdana , sans-serif;font-size:15px;line-height:1;text-align:left;color:#000000;">
171 <p>Host Alias:</p>
172 <p class="dynamic">
173 <TMPL_VAR NAME="hostAlias">
174 </p>
175 </div>
176 </td>
177 </tr>
178 </table>
179 </td>
180 </tr>
181 </tbody>
182 </table>
183 </div><!--[if mso | IE]></td></tr></table><![endif]-->
184 </td>
185 </tr>
186 </tbody>
187 </table>
188 </div>
189 <!--[if mso | IE]></td></tr></table></td></tr><tr><td class="" width="600px" ><table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
190 <div style="Margin:0px auto;max-width:600px;">
191 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
192 style="width:100%;">
193 <tbody>
194 <tr>
195 <td style="direction:ltr;font-size:0px;padding:0px;text-align:center;vertical-align:top;">
196 <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="width:600px;" ><![endif]-->
197 <div class="mj-column-per-100 outlook-group-fix"
198 style="font-size:0;line-height:0;text-align:left;display:inline-block;width:100%;direction:ltr;">
199 <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td style="vertical-align:top;width:200px;" ><![endif]-->
200 <div class="mj-column-per-33 outlook-group-fix"
201 style="font-size:13px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:33%;">
202 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
203 <tbody>
204 <tr>
205 <td style="vertical-align:top;padding:0px 0px 0px 0px;">
206 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
207 <tr>
208 <td align="left" style="font-size:0px;padding:0px 5px;word-break:break-word;">
209 <div
210 style="font-family:CoconPro-BoldCond, Red Hat Display , Open Sans , Verdana , sans-serif;font-size:15px;line-height:1;text-align:left;color:#000000;">
211 <p>Host Address:</p>
212 <p class="dynamic">
213 <TMPL_VAR NAME="hostAddress">
214 </p>
215 </div>
216 </td>
217 </tr>
218 </table>
219 </td>
220 </tr>
221 </tbody>
222 </table>
223 </div><!--[if mso | IE]></td><td style="vertical-align:top;width:200px;" ><![endif]-->
224 <div class="mj-column-per-33 outlook-group-fix"
225 style="font-size:13px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:33%;">
226 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
227 <tbody>
228 <tr>
229 <td style="vertical-align:top;padding:0px 0px 0px 0px;">
230 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
231 <tr>
232 <td align="left" style="font-size:0px;padding:0px 5px;word-break:break-word;">
233 <div
234 style="font-family:CoconPro-BoldCond, Red Hat Display , Open Sans , Verdana , sans-serif;font-size:15px;line-height:1;text-align:left;color:#000000;">
235 <p>Date:</p>
236 <p class="dynamic">
237 <TMPL_VAR NAME="date">
238 </p>
239 </div>
240 </td>
241 </tr>
242 </table>
243 </td>
244 </tr>
245 </tbody>
246 </table>
247 </div><!--[if mso | IE]></td><td style="vertical-align:top;width:200px;" ><![endif]-->
248 <div class="mj-column-per-33 outlook-group-fix" style="font-size:13px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:33%;">
249 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
250 <tbody>
251 <tr>
252 <td style="vertical-align:top;padding:0px 0px 0px 0px;">
253 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
254 <tr>
255 <td align="center" vertical-align="middle" class="button"
256 style="font-size:0px;padding:10px 25px;word-break:break-word;">
257 <table border="0" cellpadding="0" cellspacing="0" role="presentation"
258 style="border-collapse:separate;line-height:100%;">
259 <tr>
260 <td align="center" bgcolor="#008CBA" role="presentation"
261 style="border:none;border-radius:3px;cursor:auto;padding:0px;background:#008CBA;"
262 valign="middle">
263 <a href="<TMPL_VAR NAME='dynamicHref'>"
264 style="background:#008CBA;color:#ffffff;font-family:CoconPro-BoldCond, Red Hat Display, Open Sans , Verdana , sans-serif;font-size:15px;font-weight:normal;line-height:120%;Margin:0;text-decoration:none;text-transform:none;"
265 target="_blank">More Information</a></td>
266 </tr>
267 </table>
268 </td>
269 </tr>
270 </table>
271 </td>
272 </tr>
273 </tbody>
274 </table>
275 </div><!--[if mso | IE]></td></tr></table><![endif]-->
276 </div><!--[if mso | IE]></td></tr></table><![endif]-->
277 </td>
278 </tr>
279 </tbody>
280 </table>
281 </div>
282 <TMPL_IF NAME="includeAuthor">
283 <!--[if mso | IE]></td></tr></table></td></tr><tr><td class="" width="600px" ><table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
284 <div style="Margin:0px auto;max-width:600px;">
285 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
286 style="width:100%;">
287 <tbody>
288 <tr>
289 <td
290 style="direction:ltr;font-size:0px;padding:5px 0px 5px 0px;text-align:center;vertical-align:top;">
291 <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
292 <div class="mj-column-per-100 outlook-group-fix"
293 style="font-size:13px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
294 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
295 <tbody>
296 <tr>
297 <td style="vertical-align:top;padding:0px 0px 0px 0px;">
298 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
299 <tr>
300 <td align="left" style="font-size:0px;padding:0px 5px;word-break:break-word;">
301 <div style="font-family:CoconPro-BoldCond, Red Hat Display, Open Sans , Verdana , sans-serif;font-size:15px;line-height:1;text-align:left;color:#000000;">
302 <p>
303 <TMPL_VAR NAME="eventType"> by:
304 </p>
305 <p class="dynamic">
306 <TMPL_VAR NAME="author">
307 </p>
308 </div>
309 </td>
310 </tr>
311 </table>
312 </td>
313 </tr>
314 </tbody>
315 </table>
316 </div><!--[if mso | IE]></td></tr></table><![endif]-->
317 </td>
318 </tr>
319 </tbody>
320 </table>
321 </div>
322 </TMPL_IF>
323 <TMPL_IF NAME="includeComment">
324 <!--[if mso | IE]></td></tr></table></td></tr><tr><td class="" width="600px" ><table align="center" border="0" cellpadding="0" cellspacing="0" class="" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
325 <div style="Margin:0px auto;max-width:600px;">
326 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
327 style="width:100%;">
328 <tbody>
329 <tr>
330 <td
331 style="direction:ltr;font-size:0px;padding:5px 0px 5px 0px;text-align:center;vertical-align:top;">
332 <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
333 <div class="mj-column-per-100 outlook-group-fix"
334 style="font-size:13px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
335 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
336 <tbody>
337 <tr>
338 <td style="vertical-align:top;padding:0px 0px 0px 0px;">
339 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
340 <tr>
341 <td align="left" style="font-size:0px;padding:0px 5px;word-break:break-word;">
342 <div
343 style="font-family:CoconPro-BoldCond, Red Hat Display, Open Sans , Verdana , sans-serif;font-size:15px;line-height:1;text-align:left;color:#000000;">
344 <p>
345 <TMPL_VAR NAME="eventType"> Comment:
346 </p>
347 <p class="dynamic">
348 <TMPL_VAR NAME="comment">
349 </p>
350 </div>
351 </td>
352 </tr>
353 </table>
354 </td>
355 </tr>
356 </tbody>
357 </table>
358 </div><!--[if mso | IE]></td></tr></table><![endif]-->
359 </td>
360 </tr>
361 </tbody>
362 </table>
363 </div>
364 </TMPL_IF>
365 <!--[if mso | IE]></td></tr></table></td></tr><tr><td class="status-info-outlook" width="600px" ><table align="center" border="0" cellpadding="0" cellspacing="0" class="status-info-outlook" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
366 <div class="status-info" style="Margin:0px auto;max-width:600px;">
367 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
368 style="width:100%;">
369 <tbody>
370 <tr>
371 <td
372 style="direction:ltr;font-size:0px;padding:5px 0px 5px 0px;text-align:center;vertical-align:top;">
373 <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
374 <div class="mj-column-per-100 outlook-group-fix"
375 style="font-size:13px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
376 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
377 <tbody>
378 <tr>
379 <td style="vertical-align:top;padding:0px 0px 0px 0px;">
380 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
381 <tr>
382 <td align="left" style="font-size:0px;padding:0px 5px;word-break:break-word;">
383 <div
384 style="font-family:CoconPro-BoldCond, Red Hat Display , Open Sans , Verdana , sans-serif;font-size:15px;line-height:1;text-align:left;color:#000000;">
385 <p>Status information:</p>
386 <p class="dynamic">
387 <TMPL_VAR NAME="output">
388 </p>
389 </div>
390 </td>
391 </tr>
392 </table>
393 </td>
394 </tr>
395 </tbody>
396 </table>
397 </div><!--[if mso | IE]></td></tr></table><![endif]-->
398 </td>
399 </tr>
400 </tbody>
401 </table>
402 </div><!--[if mso | IE]></td></tr></table></td></tr></table><![endif]-->
403 </td>
404 </tr>
405 </tbody>
406 </table>
407 </div><!--[if mso | IE]></td></tr></table><![endif]-->
408 </div>
409 </body>
410
411 </html>
412 };
413 }
414
415 1;