Debian Codegraph @

src/notification/email/templates/service.pm

raw
1 package notification::email::templates::service;
2
3 use strict;
4 use warnings;
5
6 use Exporter qw(import);
7
8 our @EXPORT_OK = qw(get_service_template);
9
10 sub get_service_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">
70 </div>
71 </td>
72 </tr>
73 </table>
74 </td>
75 </tr>
76 </tbody>
77 </table>
78 </div><!--[if mso | IE]></td><td style="vertical-align:top;width:120px;" ><![endif]-->
79 <div class="mj-column-per-20 outlook-group-fix font-header"
80 style="font-size:13px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:20%;">
81 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
82 <tbody>
83 <tr>
84 <td style="vertical-align:top;padding:0px 0px 0px 0px;">
85 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
86 <tr>
87 <td align="right" style="font-size:0px;padding:0px 5px;word-break:break-word;">
88 <div
89 style="font-family:CoconPro-BoldCond, Red Hat Display, Open Sans , Verdana , sans-serif;font-size:15px;line-height:1;text-align:right;color:#000000;">
90 <TMPL_VAR NAME="attempts">/<TMPL_VAR NAME="maxAttempts">
91 </div>
92 </td>
93 </tr>
94 </table>
95 </td>
96 </tr>
97 </tbody>
98 </table>
99 </div><!--[if mso | IE]></td></tr></table><![endif]-->
100 </div><!--[if mso | IE]></td></tr></table><![endif]-->
101 </td>
102 </tr>
103 </tbody>
104 </table>
105 </div>
106 <!--[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]-->
107 <div class="info-resources" style="Margin:0px auto;max-width:600px;">
108 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
109 style="width:100%;">
110 <tbody>
111 <tr>
112 <td
113 style="direction:ltr;font-size:0px;padding:5px 0px 5px 0px;text-align:center;vertical-align:top;">
114 <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
115 <div class="mj-column-per-100 outlook-group-fix"
116 style="font-size:13px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
117 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
118 <tbody>
119 <tr>
120 <td style="vertical-align:top;padding:0px 0px 0px 0px;">
121 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
122 <tr>
123 <td align="left" style="font-size:0px;padding:0px 5px;word-break:break-word;">
124 <div
125 style="font-family:CoconPro-BoldCond, Red Hat Display , Open Sans , Verdana , sans-serif;font-size:15px;line-height:1;text-align:left;color:#000000;">
126 <p>Host:</p>
127 <p class="dynamic">
128 <TMPL_VAR NAME="hostName">
129 </p>
130 <p>Service:</p>
131 <p class="dynamic"><span>
132 <TMPL_VAR NAME="serviceDescription">
133 </span>
134 <span style="font-weight: normal">is</span> <span class="status">
135 <TMPL_VAR NAME="status">
136 </span>
137 <span style="font-weight: normal">for:</span> <span>
138 <TMPL_VAR NAME="duration">
139 </span>
140 </p>
141 </div>
142 </td>
143 </tr>
144 </table>
145 </td>
146 </tr>
147 </tbody>
148 </table>
149 </div><!--[if mso | IE]></td></tr></table><![endif]-->
150 </td>
151 </tr>
152 </tbody>
153 </table>
154 </div>
155 <!--[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]-->
156 <div style="Margin:0px auto;max-width:600px;">
157 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
158 style="width:100%;">
159 <tbody>
160 <tr>
161 <td
162 style="direction:ltr;font-size:0px;padding:5px 0px 5px 0px;text-align:center;vertical-align:top;">
163 <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
164 <div class="mj-column-per-100 outlook-group-fix"
165 style="font-size:13px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
166 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
167 <tbody>
168 <tr>
169 <td style="vertical-align:top;padding:0px 0px 0px 0px;">
170 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
171 <tr>
172 <td align="left" style="font-size:0px;padding:0px 5px;word-break:break-word;">
173 <div
174 style="font-family:CoconPro-BoldCond, Red Hat Display , Open Sans , Verdana , sans-serif;font-size:15px;line-height:1;text-align:left;color:#000000;">
175 <p>Host Alias:</p>
176 <p class="dynamic">
177 <TMPL_VAR NAME="hostAlias">
178 </p>
179 </div>
180 </td>
181 </tr>
182 </table>
183 </td>
184 </tr>
185 </tbody>
186 </table>
187 </div><!--[if mso | IE]></td></tr></table><![endif]-->
188 </td>
189 </tr>
190 </tbody>
191 </table>
192 </div>
193 <!--[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]-->
194 <div style="Margin:0px auto;max-width:600px;">
195 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
196 style="width:100%;">
197 <tbody>
198 <tr>
199 <td style="direction:ltr;font-size:0px;padding:0px;text-align:center;vertical-align:top;">
200 <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="width:600px;" ><![endif]-->
201 <div class="mj-column-per-100 outlook-group-fix"
202 style="font-size:0;line-height:0;text-align:left;display:inline-block;width:100%;direction:ltr;">
203 <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td style="vertical-align:top;width:200px;" ><![endif]-->
204 <div class="mj-column-per-33 outlook-group-fix"
205 style="font-size:13px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:33%;">
206 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
207 <tbody>
208 <tr>
209 <td style="vertical-align:top;padding:0px 0px 0px 0px;">
210 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
211 <tr>
212 <td align="left" style="font-size:0px;padding:0px 5px;word-break:break-word;">
213 <div
214 style="font-family:CoconPro-BoldCond, Red Hat Display , Open Sans , Verdana , sans-serif;font-size:15px;line-height:1;text-align:left;color:#000000;">
215 <p>Host Address:</p>
216 <p class="dynamic">
217 <TMPL_VAR NAME="hostAddress">
218 </p>
219 </div>
220 </td>
221 </tr>
222 </table>
223 </td>
224 </tr>
225 </tbody>
226 </table>
227 </div><!--[if mso | IE]></td><td style="vertical-align:top;width:200px;" ><![endif]-->
228 <div class="mj-column-per-33 outlook-group-fix"
229 style="font-size:13px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:33%;">
230 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
231 <tbody>
232 <tr>
233 <td style="vertical-align:top;padding:0px 0px 0px 0px;">
234 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
235 <tr>
236 <td align="left" style="font-size:0px;padding:0px 5px;word-break:break-word;">
237 <div
238 style="font-family:CoconPro-BoldCond, Red Hat Display , Open Sans , Verdana , sans-serif;font-size:15px;line-height:1;text-align:left;color:#000000;">
239 <p>Date:</p>
240 <p class="dynamic">
241 <TMPL_VAR NAME="date">
242 </p>
243 </div>
244 </td>
245 </tr>
246 </table>
247 </td>
248 </tr>
249 </tbody>
250 </table>
251 </div><!--[if mso | IE]></td><td style="vertical-align:top;width:200px;" ><![endif]-->
252 <div class="mj-column-per-33 outlook-group-fix"
253 style="font-size:13px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:33%;">
254 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
255 <tbody>
256 <tr>
257 <td style="vertical-align:top;padding:0px 0px 0px 0px;">
258 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
259 <tr>
260 <td align="center" vertical-align="middle" class="button"
261 style="font-size:0px;padding:10px 25px;word-break:break-word;">
262 <table border="0" cellpadding="0" cellspacing="0" role="presentation"
263 style="border-collapse:separate;line-height:100%;">
264 <tr>
265 <td align="center" bgcolor="#008CBA" role="presentation"
266 style="border:none;border-radius:3px;cursor:auto;padding:0px;background:#008CBA;"
267 valign="middle"><a href="<TMPL_VAR NAME='dynamicHref'>"
268 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;"
269 target="_blank">More Information</a></td>
270 </tr>
271 </table>
272 </td>
273 </tr>
274 </table>
275 </td>
276 </tr>
277 </tbody>
278 </table>
279 </div><!--[if mso | IE]></td></tr></table><![endif]-->
280 </div><!--[if mso | IE]></td></tr></table><![endif]-->
281 </td>
282 </tr>
283 </tbody>
284 </table>
285 </div>
286 <TMPL_IF NAME="includeAuthor">
287 <!--[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]-->
288 <div style="Margin:0px auto;max-width:600px;">
289 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
290 style="width:100%;">
291 <tbody>
292 <tr>
293 <td
294 style="direction:ltr;font-size:0px;padding:5px 0px 5px 0px;text-align:center;vertical-align:top;">
295 <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
296 <div class="mj-column-per-100 outlook-group-fix"
297 style="font-size:13px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
298 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
299 <tbody>
300 <tr>
301 <td style="vertical-align:top;padding:0px 0px 0px 0px;">
302 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
303 <tr>
304 <td align="left" style="font-size:0px;padding:0px 5px;word-break:break-word;">
305 <div
306 style="font-family:CoconPro-BoldCond, Red Hat Display, Open Sans , Verdana , sans-serif;font-size:15px;line-height:1;text-align:left;color:#000000;">
307 <p>
308 <TMPL_VAR NAME="eventType"> by:
309 </p>
310 <p class="dynamic">
311 <TMPL_VAR NAME="author">
312 </p>
313 </div>
314 </td>
315 </tr>
316 </table>
317 </td>
318 </tr>
319 </tbody>
320 </table>
321 </div><!--[if mso | IE]></td></tr></table><![endif]-->
322 </td>
323 </tr>
324 </tbody>
325 </table>
326 </div>
327 </TMPL_IF>
328 <TMPL_IF NAME="includeComment">
329 <!--[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]-->
330 <div style="Margin:0px auto;max-width:600px;">
331 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
332 style="width:100%;">
333 <tbody>
334 <tr>
335 <td
336 style="direction:ltr;font-size:0px;padding:5px 0px 5px 0px;text-align:center;vertical-align:top;">
337 <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
338 <div class="mj-column-per-100 outlook-group-fix"
339 style="font-size:13px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
340 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
341 <tbody>
342 <tr>
343 <td style="vertical-align:top;padding:0px 0px 0px 0px;">
344 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
345 <tr>
346 <td align="left" style="font-size:0px;padding:0px 5px;word-break:break-word;">
347 <div
348 style="font-family:CoconPro-BoldCond, Red Hat Display , Open Sans , Verdana , sans-serif;font-size:15px;line-height:1;text-align:left;color:#000000;">
349 <p>
350 <TMPL_VAR NAME="eventType"> Comment:
351 </p>
352 <p class="dynamic">
353 <TMPL_VAR NAME="comment"></p>
354 </div>
355 </td>
356 </tr>
357 </table>
358 </td>
359 </tr>
360 </tbody>
361 </table>
362 </div><!--[if mso | IE]></td></tr></table><![endif]-->
363 </td>
364 </tr>
365 </tbody>
366 </table>
367 </div>
368 </TMPL_IF>
369 <!--[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]-->
370 <div class="status-info" style="Margin:0px auto;max-width:600px;">
371 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
372 style="width:100%;">
373 <tbody>
374 <tr>
375 <td
376 style="direction:ltr;font-size:0px;padding:5px 0px 5px 0px;text-align:center;vertical-align:top;">
377 <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
378 <div class="mj-column-per-100 outlook-group-fix"
379 style="font-size:13px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
380 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
381 <tbody>
382 <tr>
383 <td style="vertical-align:top;padding:0px 0px 0px 0px;">
384 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
385 <tr>
386 <td align="left" style="font-size:0px;padding:0px 5px;word-break:break-word;">
387 <div
388 style="font-family:CoconPro-BoldCond, Red Hat Display , Open Sans , Verdana , sans-serif;font-size:15px;line-height:1;text-align:left;color:#000000;">
389 <p>Status information:</p>
390 <p class="dynamic">
391 <TMPL_VAR NAME="output">
392 </p>
393 </div>
394 </td>
395 </tr>
396 </table>
397 </td>
398 </tr>
399 </tbody>
400 </table>
401 </div><!--[if mso | IE]></td></tr></table><![endif]-->
402 </td>
403 </tr>
404 </tbody>
405 </table>
406 </div>
407 <!--[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]-->
408 <div style="Margin:0px auto;max-width:600px;">
409 <table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation"
410 style="width:100%;">
411 <tbody>
412 <tr>
413 <td
414 style="direction:ltr;font-size:0px;padding:5px 0px 5px 0px;text-align:center;vertical-align:top;">
415 <!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
416 <div class="mj-column-per-100 outlook-group-fix"
417 style="font-size:13px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
418 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
419 <tbody>
420 <tr>
421 <td style="vertical-align:top;padding:0px 0px 0px 0px;">
422 <table border="0" cellpadding="0" cellspacing="0" role="presentation" width="100%">
423 <tr>
424 <td align="center" class="graph-container"
425 style="font-size:0px;padding:10px 25px;word-break:break-word;">
426 <table border="0" cellpadding="0" cellspacing="0" role="presentation"
427 style="border-collapse:collapse;border-spacing:0px;">
428 <tbody>
429 <tr>
430 <td style="width:550px;">
431 <TMPL_VAR NAME="graphHtml">
432 </td>
433 </tr>
434 </tbody>
435 </table>
436 </td>
437 </tr>
438 </table>
439 </td>
440 </tr>
441 </tbody>
442 </table>
443 </div><!--[if mso | IE]></td></tr></table><![endif]-->
444 </td>
445 </tr>
446 </tbody>
447 </table>
448 </div><!--[if mso | IE]></td></tr></table></td></tr></table><![endif]-->
449 </td>
450 </tr>
451 </tbody>
452 </table>
453 </div><!--[if mso | IE]></td></tr></table><![endif]-->
454 </div>
455 </body>
456
457 </html>
458 };
459 }
460
461 1;