[Blends-commit] [SCM] website branch, master, updated. 821c02af4933156d1915b3a816b38d05f05876a9

Andreas Tille tille at debian.org
Sat Jul 6 19:40:08 UTC 2013


The following commit has been merged in the master branch:
commit 821c02af4933156d1915b3a816b38d05f05876a9
Author: Andreas Tille <tille at debian.org>
Date:   Sat Jul 6 21:34:48 2013 +0200

    Add legend (needs better was to inject space ... or rather find a better way for the legend at all)

diff --git a/misc/thermometer/templates/thermometer.xhtml b/misc/thermometer/templates/thermometer.xhtml
index ea243d6..07c83fb 100644
--- a/misc/thermometer/templates/thermometer.xhtml
+++ b/misc/thermometer/templates/thermometer.xhtml
@@ -76,9 +76,19 @@ table.pkg tr.othered {
  </tr>
 </py:for>
 </table>
+<table border="1">
+<caption><h3>Color legend</h3></caption>
+
+<py:for each="leg in legend">
+ <tr><td><table class='pkg'><tr class='${leg[0]}'><td></td></tr></table></td>
+     <td><small>${leg[1]}</small></td>
+ </tr>
+</py:for>
+</table>
+
 <div id="footer">
   <hr class="hidecss" />
-  <address>${updatetimestamp}</address>
+  <address>Status at: ${updatetimestamp}</address>
 </div>
 </body>
 </html>
diff --git a/misc/thermometer/thermometer.py b/misc/thermometer/thermometer.py
index 8030c81..bc06ac6 100755
--- a/misc/thermometer/thermometer.py
+++ b/misc/thermometer/thermometer.py
@@ -280,6 +280,14 @@ def main():
     data={}
     data['projectname'] = blendname
     data['blend_data']  = blend_data
+    legend = [
+               ['upToDate',        'Up to date'],
+               ['debianOutOfDate', 'Debian stable behind unstable'],
+               ['ubuntuOutOfDate', 'Ubuntu behind Debian unstable'],
+               ['unpackaged',      'Not packaged'],
+               ['obsolete',        'Obsolete']
+             ]
+    data['legend'] = legend
     # data['updatetimestamp']   = to_unicode(_('Last update:')) + ' ' + formatdate(time.mktime(t.timetuple()))
     data['updatetimestamp']   = 'Last update:' + ' ' + formatdate(time.mktime(t.timetuple()))
     

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list