bh@151: <html xmlns:py="http://genshi.edgewall.org/">
bh@151:   <head>
bh@151:     <title>Tree Packager Status</title>
bh@151:     <style type="text/css">
bh@151:       .statustable { background:#F4F4F4; }
bh@151:       .statustablehead { background:#E0E0E0; }
bh@151:       .statusheading { font-weight:bold; }
bh@151:       .finished { background:#C0FFC0; }
bh@151:       .inprogress { background:#FFFFC0; }
bh@151:       .error { background:#FFC0C0; }
bh@151:       td { padding:5px; background:#FFFFFF}
bh@151:     </style>
bh@151:   </head>
bh@151:   <body>
bh@151:     <h1>Tree Packager Status</h1>
bh@151: 
bh@151:     <table class="statustable">
bh@151:       <tr>
bh@151: 	<th class="statustablehead">Revision</th>
bh@151: 	<py:for each="track in report.revisions.tracks">
bh@151: 	  <th class="statustablehead">${track.name}</th>
bh@151: 	</py:for>
bh@151:       </tr>
bh@151: 
bh@151:       <py:for each="row in report.revisions.sorted_by_revision">
bh@151: 	<tr>
bh@244: 	  <td>${row[0][0]}</td>
bh@151: 	  <py:for each="col in row[1]">
bh@151: 	    <py:choose>
bh@151: 	      <py:when test="col">
bh@151: 		<td class="${col.status.cls}">
bh@151: 		  <span class="statusheading">${col.status.desc}</span><br/>
bh@151: 		  Start: ${col.status.start}<br/>
bh@151: 		  Stop: ${col.status.stop}<br/>
bh@151: 		  <py:for each="title, basename in col.log_files">
bh@240: 		    <a href="${col.name}/${col.revno}-${col.rulesrev}/${basename}">${title}</a>
bh@151: 		    <br/>
bh@151: 		  </py:for>
bh@151: 		</td>
bh@151: 	      </py:when>
bh@151: 	      <py:otherwise>
bh@151: 		<td></td>
bh@151: 	      </py:otherwise>
bh@151: 	    </py:choose>
bh@151: 	  </py:for>
bh@151: 
bh@151: 	</tr>
bh@151:       </py:for>
bh@151:     </table>
bh@151: 
bh@151:     <hr/>
bh@151:     report generated at ${report.date},
bh@151:     powered by <a href="http://treepkg.wald.intevation.org/">Tree Packager</a>
bh@151: 
bh@151:   </body>
bh@151: </html>