[Blends-commit] [SCM] website branch, master, updated. 1bb3f36ec186fef53503fa071ffaff721f39cc0f

Andreas Tille tille at debian.org
Sun Jul 7 13:42:42 UTC 2013


The following commit has been merged in the master branch:
commit 1bb3f36ec186fef53503fa071ffaff721f39cc0f
Author: Andreas Tille <tille at debian.org>
Date:   Sun Jul 7 15:38:33 2013 +0200

    Add WNPP bug if existent

diff --git a/misc/thermometer/templates/thermometer.xhtml b/misc/thermometer/templates/thermometer.xhtml
index 0d8f4fb..2a0947d 100644
--- a/misc/thermometer/templates/thermometer.xhtml
+++ b/misc/thermometer/templates/thermometer.xhtml
@@ -71,7 +71,10 @@ table.pkg tr.othered {
 </tr>
 <py:for each="pkg in blend_data">
  <tr class='${pkg.debianstatus}'>
-  <td><strong>${pkg.source}</strong> (<span py:if="pkg.is_in_debian == 1"><a href='http://packages.qa.debian.org/${pkg.source}'>PTS</a>,</span><a href='${pkg.homepage}'>UP</a>)</td>
+  <td><strong>${pkg.source}</strong> (<span py:choose="pkg.is_in_debian">
+     <span py:when="1"><a href='http://packages.qa.debian.org/${pkg.source}'>PTS</a>, </span>
+     <span py:otherwise=""><span py:if="pkg.wnpp != ''"><a href="http://bugs.debian.org/${pkg.wnpp}">WNPP</a>, </span></span>
+   </span><a href='${pkg.homepage}'>UP</a>)</td>
   <td>${pkg.stable}</td><td>${pkg.testing}</td><td>${pkg.unstable}</td><td>${pkg.stable_bpo}</td>
  </tr>
 </py:for>
diff --git a/misc/thermometer/templates/uthermometer.xhtml b/misc/thermometer/templates/uthermometer.xhtml
index c9fd00f..73c3f1f 100644
--- a/misc/thermometer/templates/uthermometer.xhtml
+++ b/misc/thermometer/templates/uthermometer.xhtml
@@ -71,7 +71,10 @@ table.pkg tr.othered {
 </tr>
 <py:for each="pkg in blend_data">
  <tr class='${pkg.ubuntustatus}'>
-  <td><strong>${pkg.source}</strong> (<a href='http://packages.qa.debian.org/${pkg.source}'>PTS</a>,<a href='${pkg.homepage}'>UP</a>)</td>
+  <td><strong>${pkg.source}</strong> (<span py:choose="pkg.is_in_debian">
+     <span py:when="1"><a href='http://packages.qa.debian.org/${pkg.source}'>PTS</a>, </span>
+     <span py:otherwise=""><span py:if="pkg.wnpp != ''"><a href="http://bugs.debian.org/${pkg.wnpp}">WNPP</a>, </span></span>
+   </span><a href='${pkg.homepage}'>UP</a>)</td>
   <td>${pkg.stable}</td><td>${pkg.testing}</td><td>${pkg.unstable}</td><td>${pkg.stable_bpo}</td><td>${pkg.precise}</td><td>${pkg.quantal}</td><td>${pkg.raring}</td>
  </tr>
 </py:for>

-- 
Static and dynamic websites for Debian Pure Blends



More information about the Blends-commit mailing list