-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsummarypage.mako
48 lines (47 loc) · 1.6 KB
/
summarypage.mako
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<html>
<head>
<link rel="stylesheet" type="text/css" href="results.css">
</head>
<a name="top"></a>
<div id="wrapper">
<div id="header">
<h1>Build Results from XYZ</h1>
</div>
<div id="nav">
<ul class="nav_links">
% for (tableidx, table) in enumerate(tables):
<li class="nav_links"><a href="#table${tableidx}">${table.link_text}</a></li>
% endfor
</ul>
</div>
<div id="resultbody">
% for (tableidx, table) in enumerate(tables):
<a name="table${tableidx}"></a>
<h2>
${table.title}
</h2>
<table class="resultstable">
<tr>
% for cell in table.column_headers:
<th nowrap>${cell}</th>
% endfor
</tr>
% for row in table.data:
<tr>
% for idx, cell in enumerate(row):
%if type(cell) is int and table.detail_link_function is not None:
<% linktarget = table.detail_link_function(row, idx) %>
<% status = "" if cell == 0 else "error" %>
<td ${status} nowrap><a href="${linktarget}">${cell}</a></td>
%else:
<td nowrap>${cell}</td>
%endif
% endfor
</tr>
% endfor
</table>
<a href="#top">top</a>
% endfor
</div>
</div>
</html>