tag 498313 + patch thanks Here is a patch. Gio. -- Giovanni Mascellani <mascellani@poisson.phc.unipi.it> Pisa, Italy Web: http://poisson.phc.unipi.it/~mascellani Jabber: g.mascellani@jabber.org / giovanni@elabor.homelinux.org
From 42c36ed5f9028c901ecc42b783f7dc61bf666547 Mon Sep 17 00:00:00 2001
From: Giovanni Mascellani <mascellani@poisson.phc.unipi.it>
Date: Wed, 27 Jul 2011 23:20:56 +0200
Subject: [PATCH] Adding PTS links to patch-tracker.d.o (closes: #498313).
---
pts/www/xsl/pts.xsl | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 76 insertions(+), 0 deletions(-)
diff --git a/pts/www/xsl/pts.xsl b/pts/www/xsl/pts.xsl
index 5b6cf56..0607fe5 100644
--- a/pts/www/xsl/pts.xsl
+++ b/pts/www/xsl/pts.xsl
@@ -867,6 +867,81 @@ other-to-%xx, especially % to %25... Fortunately, that's rare -->
</xsl:if>
</xsl:template>
+<xsl:template name="output-patch-tracker-version">
+ <xsl:param name="suite" select="''" />
+ <xsl:param name="link" select="'yes'" />
+ <xsl:variable name="version">
+ <span class="srcversion" title="{$suite}">
+ <xsl:value-of select="document(concat('../base/', $dir, '/', $suite,
+ '.xml'))/source/version"/>
+ </span>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="$link='yes'">
+ <a href="http://patch-tracker.debian.org/package/{$package}/{$version}">
+ <xsl:copy-of select="$version" />
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:copy-of select="$version" />
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+<xsl:template name="patch-tracker">
+ <div class="block patch-tracker">
+ <a name="patch-tracker" />
+ <h2>patch-tracker
+ <xsl:call-template name="more-info-marker">
+ <xsl:with-param name="href">http://patch-tracker.debian.org/package/<xsl:value-of select="package" /></xsl:with-param>
+ <xsl:with-param name="title">Link to patch tracker</xsl:with-param>
+ </xsl:call-template></h2>
+
+ <dl>
+ <xsl:if test="$hasoldstable">
+ <dt title="old stable release">oldstable</dt>
+ <dd>
+ <xsl:call-template name="output-patch-tracker-version">
+ <xsl:with-param name="suite">oldstable</xsl:with-param>
+ </xsl:call-template>
+ </dd>
+ </xsl:if>
+ <xsl:if test="$hasstable">
+ <dt>stable</dt>
+ <dd>
+ <xsl:call-template name="output-patch-tracker-version">
+ <xsl:with-param name="suite">stable</xsl:with-param>
+ </xsl:call-template>
+ </dd>
+ </xsl:if>
+ <xsl:if test="$hastesting">
+ <dt>testing</dt>
+ <dd>
+ <xsl:call-template name="output-patch-tracker-version">
+ <xsl:with-param name="suite">testing</xsl:with-param>
+ </xsl:call-template>
+ </dd>
+ </xsl:if>
+ <xsl:if test="$hasunstable">
+ <dt>unstable</dt>
+ <dd>
+ <xsl:call-template name="output-patch-tracker-version">
+ <xsl:with-param name="suite">unstable</xsl:with-param>
+ </xsl:call-template>
+ </dd>
+ </xsl:if>
+ <xsl:if test="$hasexperimental">
+ <dt title="experimental release">exp</dt>
+ <dd>
+ <xsl:call-template name="output-patch-tracker-version">
+ <xsl:with-param name="suite">experimental</xsl:with-param>
+ </xsl:call-template>
+ </dd>
+ </xsl:if>
+ </dl>
+ </div>
+</xsl:template>
+
<xsl:template name="other-links">
<div class="block links">
<a name="links" />
@@ -1175,6 +1250,7 @@ other-to-%xx, especially % to %25... Fortunately, that's rare -->
<xsl:call-template name="bugs-count" />
<xsl:call-template name="other-links" />
<xsl:call-template name="ubuntu" />
+ <xsl:call-template name="patch-tracker" />
</div>
</xsl:otherwise>
</xsl:choose>
--
1.7.5.4
Attachment:
signature.asc
Description: OpenPGP digital signature