[Blends-commit] [SCM] website branch, master, updated. 9e167386b8c68437a9b046378f5e20062292f8ed

Andreas Tille tille at debian.org
Wed Jul 10 09:05:18 UTC 2013


The following commit has been merged in the master branch:
commit 495229575cb612d22d860cff2763056cde6e2d6f
Author: Andreas Tille <tille at debian.org>
Date:   Mon Jul 8 20:31:58 2013 +0200

    Try some better header for Thermometer

diff --git a/webtools/templates/thermometer.xhtml b/webtools/templates/thermometer.xhtml
index 4d678fc..c0d6283 100644
--- a/webtools/templates/thermometer.xhtml
+++ b/webtools/templates/thermometer.xhtml
@@ -63,6 +63,16 @@ table.pkg tr.othered {
 <link href="../inc/style.css" type="text/css" rel="stylesheet"/>
 </head>
 <body>
+<div style="text-align: center;">
+<a href="$projecturl"><span py:choose="logourl">
+           <span py:when="None">${projectname} Project</span>
+           <span py:otherwise=""><img src="$logourl" alt="$projectname Project" height="93" /></span>
+     </span>
+</a>
+</div>
+<div class="heading" py:if="advertising">
+    <div class="tabBar" style="text-align: center;">$advertising</div>
+</div>
 <table class="pkg">
 <caption><h3>$projectname Package Thermometer</h3></caption>
 <tr class='title'>
diff --git a/webtools/thermometer.py b/webtools/thermometer.py
index 2f95848..88d2186 100755
--- a/webtools/thermometer.py
+++ b/webtools/thermometer.py
@@ -295,7 +295,9 @@ def main():
                ['unpackaged',      'Not packaged'],
                ['obsolete',        'Obsolete']
              ]
-    data['legend'] = legend
+    data['legend']     = legend
+    for key in ('projecturl', 'projectname', 'logourl', 'advertising'):
+        data[key] = config[key]
     # 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