comparison recipes/gnupg/pkits.html @ 156:27e78096a3fe

gnupg2 recipe: format the PKITS log as a HTML table
author Bernhard Herzog <bh@intevation.de>
date Wed, 11 Jun 2008 09:48:57 +0000
parents
children
comparison
equal deleted inserted replaced
155:236e91be522c 156:27e78096a3fe
1 <html xmlns:py="http://genshi.edgewall.org/">
2 <head>
3 <title>PKITS Log for GnuPG2 rev. ${pkits.revision}</title>
4 <style type="text/css">
5 .statustable { background:#F4F4F4; }
6 .statustablehead { background:#E0E0E0; }
7 .statusheading { font-weight:bold; }
8 .PASS { background:#C0FFC0; }
9 .SKIP { background:#FFFFC0; }
10 .FAIL { background:#FFC0C0; }
11 .UNRESOLVED { background:#D0D0D0 }
12 .unknown { background:#FFFFFF }
13 tr { background:#FFFFFF; }
14 td { padding:5px; }
15 </style>
16 </head>
17 <body>
18 <H1>PKITS Log for GnuPG2 rev. ${pkits.revision}</H1>
19 <table class="statustable">
20 <tr>
21 <th class="statustablehead">Test ID</th>
22 <th class="statustablehead">Status</th>
23 <th class="statustablehead">Details</th>
24 </tr>
25 <py:for each="line in pkits.lines">
26 <py:with vars="testid, status, details = line.split(None, 2)">
27 <tr class="${status in ['PASS', 'SKIP', 'FAIL', 'UNRESOLVED']
28 and status or 'unknown'}">
29 <td>${testid}</td>
30 <td>${status}</td>
31 <td>${details}</td>
32 </tr>
33 </py:with>
34 </py:for>
35 </table>
36 </body>
37 </html>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)