bh@153: <html xmlns:py="http://genshi.edgewall.org/">
bh@153:   <head>
bh@153:     <title>Tree Packager Status</title>
bh@153:     <style type="text/css">
bh@153:       .statustable { background:#F4F4F4; }
bh@153:       .statustablehead { background:#E0E0E0; }
bh@153:       .statusheading { font-weight:bold; }
bh@153:       .finished { background:#C0FFC0; }
bh@153:       .inprogress { background:#FFFFC0; }
bh@153:       .error { background:#FFC0C0; }
bh@153:       .date_row {
bh@153:           background:#F0F0F0; 
bh@153:           font-weight:bold; font-size:smaller;
bh@153:           text-align:center;
bh@153:       }
bh@153:       tr { background:#FFFFFF; }
bh@153:       td { padding:5px; }
bh@153:     </style>
bh@153:   </head>
bh@153:   <body>
bh@153:     <h1>Tree Packager Status</h1>
bh@153: 
bh@153:     <table class="statustable">
bh@153:       <tr>
bh@153: 	<th class="statustablehead">Status</th>
bh@153: 	<th class="statustablehead">Package</th>
bh@153: 	<th class="statustablehead">Revision</th>
bh@153: 	<th class="statustablehead">Start</th>
bh@153: 	<th class="statustablehead">Stop</th>
bh@153: 	<th class="statustablehead">Notes</th>
bh@153:       </tr>
bh@153: 
bh@288:       <py:for each="row in report.revisions.sorted_by_startdate()">
bh@153: 	<py:with vars="item=row[1]">
bh@153: 	  <py:if test="item.new_date">
bh@153: 	    <tr class="date_row"><td colspan="6">${item.new_date}</td></tr>
bh@153: 	  </py:if>
bh@153: 	  <tr class="${item.status.cls}">
bh@153: 	    <td>${item.status.desc}</td>
bh@153: 	    <td style="font-weight:bold;">${item.name}</td>
bh@153: 	    <td align="right">${item.revno}</td>
bh@153: 	    <td>${item.status.start}</td>
bh@153: 	    <td>${item.status.stop}</td>
bh@153: 	    <td>
bh@153: 	      <py:for each="title, basename in item.log_files">
bh@239: 		<a href="${item.name}/${item.revno}-${item.rulesrev}/${basename}">${title}</a>
bh@153: 	      </py:for>
bh@153: 	    </td>
bh@153: 	  </tr>
bh@153: 	</py:with>
bh@153:       </py:for>
bh@153:     </table>
bh@153: 
bh@153:     <hr/>
bh@153:     report generated at ${report.date},
bh@153:     powered by <a href="http://treepkg.wald.intevation.org/">Tree Packager</a>
bh@153: 
bh@153:   </body>
bh@153: </html>