[Treepkg-commits] r78 - trunk/web

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Jun 9 18:34:23 CEST 2008


Author: bh
Date: 2008-06-09 18:34:23 +0200 (Mon, 09 Jun 2008)
New Revision: 78

Added:
   trunk/web/status-by-startdate.html
Log:
New alternative template for the status page.  This one sorts by
start-date instead of revision number


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



More information about the Treepkg-commits mailing list