1 <#-- |
|
2 ============================================================================ |
|
3 Name : email.html.ftl |
|
4 Part of : Helium |
|
5 |
|
6 Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
7 All rights reserved. |
|
8 This component and the accompanying materials are made available |
|
9 under the terms of the License "Eclipse Public License v1.0" |
|
10 which accompanies this distribution, and is available |
|
11 at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
12 |
|
13 Initial Contributors: |
|
14 Nokia Corporation - initial contribution. |
|
15 |
|
16 Contributors: |
|
17 |
|
18 Description: |
|
19 |
|
20 ============================================================================ |
|
21 --> |
|
22 <?xml version="1.0" encoding="utf-8"?> |
|
23 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
24 <html> |
|
25 <head> |
|
26 <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> |
|
27 <title> |
|
28 Build result e-mail from ${ant["env.COMPUTERNAME"]}. |
|
29 </title> |
|
30 <style type="text/css"> |
|
31 body{font-family:Verdana; font-size:10pt; line-height:1.1em; padding: 10px 10px; background-color:#E4F0F4;} |
|
32 h1{ |
|
33 font-size:14pt; |
|
34 color:#000; |
|
35 padding: 20px 15px; |
|
36 margin:0; |
|
37 } |
|
38 h2{font-size:12pt;} |
|
39 h5{ |
|
40 font-size:10pt; |
|
41 background-color:#8495BA; |
|
42 color:#fff; |
|
43 heigth:20pt; |
|
44 padding: 5px 15px; |
|
45 border-left:2px solid #5A6FA0; |
|
46 border-bottom:2px solid #5A6FA0; |
|
47 border-top:2px solid #98A6C6; |
|
48 border-right:2px solid #98A6C6; |
|
49 margin:0; |
|
50 } |
|
51 |
|
52 |
|
53 p { |
|
54 font-size:10pt; |
|
55 padding: 0em 1em 1em 1em; |
|
56 margin: 0 1em 0.5em 1em; |
|
57 border-right:1px solid #5A6FA0; |
|
58 border-top:0; |
|
59 border-bottom:1px solid #98A6C6; |
|
60 border-left:1px solid #98A6C6; |
|
61 background-color:#CDE4EB; |
|
62 white-space:normal; |
|
63 } |
|
64 |
|
65 .data{color:#00F;} |
|
66 .okmessage{color:#24A22D;font-weight:bold; display:block; margin-bottom: 1em;padding-top: 1em;} |
|
67 .errormessage{color:#F00;font-weight:bold; display:block; margin-bottom: 1em;padding-top: 1em;} |
|
68 |
|
69 span.items{text-indent:-1em; padding-left: 1em; display:block; word-wrap:normal;} |
|
70 |
|
71 span.bold{font-weight:bold; display:block; padding: 1em 0;} |
|
72 p.maintext{padding-top: 1em;} |
|
73 p.logfolder{color:#000;font-weight:bold; padding-top: 1em;} |
|
74 p.distrib{font-weight:bold;} |
|
75 |
|
76 |
|
77 a:link,a:visited{color:#00E;} |
|
78 |
|
79 </style> |
|
80 </head> |
|
81 <body> |
|
82 <!-- The title --> |
|
83 <div id="buildname"> |
|
84 <h1>This is an e-mail notification that a build has been completed on ${ant["env.COMPUTERNAME"]}</h1> |
|
85 </div> |
|
86 |
|
87 <#assign table_info = pp.loadData('com.nokia.helium.metadata.SQLFMPPLoader', |
|
88 "${dbPath}") > |
|
89 |
|
90 <#assign error_count = table_info['select count(data) as COUNT from metadata where priority_id in (select id from priority where priority like \'ERROR\') and logpath_id in (select id from logfiles where path like \'%${logfile}%\')'][0]['COUNT'] > |
|
91 <!-- section --> |
|
92 <#macro create_section title type> |
|
93 <div id="foldername"> |
|
94 <h5>${title}</h5> |
|
95 <p class="maintext"> |
|
96 <!-- content span --> |
|
97 <span class="${type}"><#nested></span> |
|
98 </p> |
|
99 </div> |
|
100 </#macro> |
|
101 <#if (error_count > 0)> |
|
102 <span class="errormessage"> |
|
103 ${logfile}...FAIL<br/> |
|
104 <#list table_info['select * from metadata where priority_id in (select id from priority where priority like \'ERROR\') and logpath_id in (select id from logfiles where path like \'%${logfile}%\')'] as recordentry > |
|
105 <ul> |
|
106 ${recordentry['data']}<br/> |
|
107 </ul> |
|
108 </#list> |
|
109 </span> |
|
110 <#else> |
|
111 <span class="okmessage">${logfile}...OK<br/></span> |
|
112 </#if> |
|
113 </body> |
|
114 </html> |
|