/[qa]/trunk/pts/www/xsl/pts.xsl
ViewVC logotype

Diff of /trunk/pts/www/xsl/pts.xsl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 692 by hertzog, Thu Jan 22 19:17:04 2004 UTC revision 1021 by jeroen, Mon Jun 6 00:36:39 2005 UTC
# Line 8  Line 8 
8    
9  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
10    
11  <xsl:output encoding="ISO-8859-1" method="html"/>  <xsl:output encoding="UTF-8" method="html"/>
12    
13  <xsl:param name="package"/>  <xsl:param name="package"/>
14  <xsl:param name="dir"/>  <xsl:param name="dir"/>
15  <xsl:param name="date"/>  <xsl:param name="date"/>
16    <xsl:param name="hasoldstable" select="''"/>
17  <xsl:param name="hasstable" select="''"/>  <xsl:param name="hasstable" select="''"/>
18  <xsl:param name="hastesting" select="''"/>  <xsl:param name="hastesting" select="''"/>
19  <xsl:param name="hasunstable" select="''"/>  <xsl:param name="hasunstable" select="''"/>
# Line 20  Line 21 
21  <xsl:param name="hasother" select="''"/>  <xsl:param name="hasother" select="''"/>
22  <xsl:param name="hass-p-u" select="''"/>  <xsl:param name="hass-p-u" select="''"/>
23  <xsl:param name="hast-p-u" select="''"/>  <xsl:param name="hast-p-u" select="''"/>
24    <xsl:param name="hasoldstable-security" select="''"/>
25  <xsl:param name="hasstable-security" select="''"/>  <xsl:param name="hasstable-security" select="''"/>
26  <xsl:param name="hastesting-security" select="''"/>  <xsl:param name="hastesting-security" select="''"/>
27  <xsl:param name="hasnews" select="''"/>  <xsl:param name="hasnews" select="''"/>
# Line 51  Line 53 
53          <xsl:text>[</xsl:text>          <xsl:text>[</xsl:text>
54          <xsl:value-of select="@date"/>          <xsl:value-of select="@date"/>
55          <xsl:text>] </xsl:text>          <xsl:text>] </xsl:text>
56        </xsl:if><a href="{@url}"><xsl:value-of select="text()"/></a></li>        </xsl:if><a href="{@url}">
57          <xsl:value-of select="text()"/></a><xsl:if test="@from">
58            <xsl:text> (</xsl:text>
59            <xsl:value-of select="@from"/>
60            <xsl:text>)</xsl:text></xsl:if></li>
61      </xsl:when>      </xsl:when>
62      <xsl:otherwise>      <xsl:otherwise>
63        <li><xsl:if test="@date">        <li><xsl:if test="@date">
# Line 120  Line 126 
126    </xsl:if>    </xsl:if>
127    <tr class="normalrow">    <tr class="normalrow">
128    <td class="labelcell">Maintainer</td>    <td class="labelcell">Maintainer</td>
129    <td class="contentcell"><a class="email" href="http://qa.debian.org/developer.php?login={maintainer/email}">    <td class="contentcell">
130    <xsl:value-of select="maintainer/name"/></a> [<a class="email" href="mailto:{maintainer/email}">mail</a>]</td>    <xsl:element name="a">
131        <xsl:attribute name="href">
132          <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
133          <xsl:call-template name="escape-name">
134            <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>
135          </xsl:call-template>
136        </xsl:attribute>
137        <xsl:value-of select="maintainer/name"/>
138      </xsl:element>
139      [<a class="email" href="mailto:{maintainer/email}">mail</a>]
140      </td>
141    </tr>    </tr>
142    <tr class="normalrow">    <tr class="normalrow">
143    <td class="labelcell"><a href="http://www.debian.org/doc/manuals/developers-reference/ch-pkgs.en.html#s-collaborative-maint">Co-Maintainers</a></td>    <td class="labelcell"><a href="http://www.debian.org/doc/manuals/developers-reference/ch-pkgs.en.html#s-collaborative-maint">Co-Maintainers</a></td>
# Line 157  Line 173 
173    <tr class="normalrow">    <tr class="normalrow">
174    <td class="labelcell">All bugs</td>    <td class="labelcell">All bugs</td>
175    <td class="contentcell">    <td class="contentcell">
176    <a href="http://bugs.debian.org/src:{$package}"><xsl:if test="$hasother">    <xsl:element name="a">
177      <xsl:value-of select="$other/bugs/@all"/>      <xsl:attribute name="href">
178    </xsl:if></a>        <xsl:text>http://bugs.debian.org/src:</xsl:text>
179          <xsl:call-template name="escape-name">
180            <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
181          </xsl:call-template>
182        </xsl:attribute>
183        <xsl:if test="$hasother">
184          <xsl:value-of select="$other/bugs/@all"/>
185        </xsl:if>
186      </xsl:element>
187    </td>    </td>
188    </tr>    </tr>
189    <tr class="normalrow">    <tr class="normalrow">
# Line 334  Line 358 
358    </td>    </td>
359    </tr>    </tr>
360    </xsl:if>    </xsl:if>
361      <xsl:if test="$hasoldstable-security">
362      <tr class="normalrow">
363      <td class="labelcell">Security Updates (oldstable)</td>
364      <td class="contentcell">
365      <xsl:value-of select="document(concat('../base/', $dir, '/oldstable-security.xml'))/source/version"/>
366      </td>
367      </tr>
368      </xsl:if>
369    <xsl:if test="$hasstable-security">    <xsl:if test="$hasstable-security">
370    <tr class="normalrow">    <tr class="normalrow">
371    <td class="labelcell">Security Updates (stable)</td>    <td class="labelcell">Security Updates (stable)</td>
# Line 366  Line 398 
398    </td>    </td>
399    </tr>    </tr>
400    </xsl:if>    </xsl:if>
401      <xsl:if test="$hasoldstable">
402      <tr class="normalrow">
403      <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>
404      <td class="contentcell">
405      <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>
406      </td>
407      </tr>
408      </xsl:if>
409    <xsl:if test="$hasstable">    <xsl:if test="$hasstable">
410    <tr class="normalrow">    <tr class="normalrow">
411    <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>    <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>
# Line 390  Line 430 
430    <tr>    <tr>
431    <td class="contentcell" colspan="2" style="text-align: left">    <td class="contentcell" colspan="2" style="text-align: left">
432    <xsl:if test="architecture!='all'">    <xsl:if test="architecture!='all'">
433      <li><a href="http://buildd.debian.org/build.php?pkg={$package}">Buildd logs</a></li>      <li>
434          <xsl:element name="a">
435            <xsl:attribute name="href">
436              <xsl:text>http://buildd.debian.org/build.php?pkg=</xsl:text>
437              <xsl:call-template name="escape-name">
438                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
439              </xsl:call-template>
440            </xsl:attribute>
441            <xsl:text>Buildd logs</xsl:text>
442          </xsl:element>
443        </li>
444    </xsl:if>    </xsl:if>
445    <!-- DISABLED until ddtp.debian.org is back up    <!-- DISABLED until ddtp.debian.org is back up
446      <li><a href="http://ddtp.debian.org/stats/pdesc/report.cgi?package={$package}&amp;lang=all&amp;type=src-drvbin&amp;subword=0">Description's translations (DDTP)</a></li>      <li>
447          <xsl:element name="a">
448            <xsl:attribute name="href">
449              <xsl:text>http://ddtp.debian.org/stats/pdesc/report.cgi?package=</xsl:text>
450              <xsl:call-template name="escape-name">
451                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
452              </xsl:call-template>
453              <xsl:text>&amp;lang=all&amp;type=src-drvbin&amp;subword=0</xsl:text>
454            </xsl:attribute>
455            Description's translations (DDTP)
456          </xsl:element>
457        </li>
458    <xsl:if test="$other/@debconf='yes'">    <xsl:if test="$other/@debconf='yes'">
459      <li><a href="http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package={$package}">Debconf templates's translations (DDTP)</a></li>      <li>
460          <xsl:element name="a">
461            <xsl:attribute name="href">
462              <xsl:text>http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package=</xsl:text>
463              <xsl:call-template name="escape-name">
464                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
465              </xsl:call-template>
466            </xsl:attribute>
467            Debconf templates's translations (DDTP)
468          </xsl:element>
469        </li>
470    </xsl:if>    </xsl:if>
471    -->    -->
472    <xsl:if test="$hasunstable and $other/debcheck/@unstable='yes'">    <xsl:if test="$hasunstable and $other/debcheck/@unstable='yes'">
473      <li><a href="http://qa.debian.org/debcheck.php?dist=unstable&amp;package={$package}">Debcheck on unstable</a></li>      <li>
474          <xsl:element name="a">
475            <xsl:attribute name="href">
476              <xsl:text>http://qa.debian.org/debcheck.php?dist=unstable&amp;package=</xsl:text>
477              <xsl:call-template name="escape-name">
478                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
479              </xsl:call-template>
480            </xsl:attribute>
481            <xsl:text>Debcheck on unstable</xsl:text>
482          </xsl:element>
483        </li>
484    </xsl:if>    </xsl:if>
485    <xsl:if test="$hastesting and $other/debcheck/@testing='yes'">    <xsl:if test="$hastesting and $other/debcheck/@testing='yes'">
486      <li><a href="http://qa.debian.org/debcheck.php?dist=testing&amp;package={$package}">Debcheck on testing</a></li>      <li>
487          <xsl:element name="a">
488            <xsl:attribute name="href">
489              <xsl:text>http://qa.debian.org/debcheck.php?dist=testing&amp;package=</xsl:text>
490              <xsl:call-template name="escape-name">
491                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
492              </xsl:call-template>
493            </xsl:attribute>
494            <xsl:text>Debcheck on testing</xsl:text>
495          </xsl:element>
496        </li>
497    </xsl:if>    </xsl:if>
498    <xsl:if test="$hasstable and $other/debcheck/@stable='yes'">    <xsl:if test="$hasstable and $other/debcheck/@stable='yes'">
499      <li><a href="http://qa.debian.org/debcheck.php?dist=stable&amp;package={$package}">Debcheck on stable</a></li>      <li>
500          <xsl:element name="a">
501            <xsl:attribute name="href">
502              <xsl:text>http://qa.debian.org/debcheck.php?dist=stable&amp;package=</xsl:text>
503              <xsl:call-template name="escape-name">
504                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
505              </xsl:call-template>
506            </xsl:attribute>
507            <xsl:text>Debcheck on stable</xsl:text>
508          </xsl:element>
509        </li>
510    </xsl:if>    </xsl:if>
511    <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->    <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->
512                                <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-/()&#34; ', &quot;'&quot;)"/>                                <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-/()&#34; ', &quot;'&quot;)"/>
# Line 502  Line 603 
603        <li>The package has not yet entered <a        <li>The package has not yet entered <a
604        href="http://ftp-master.debian.org/testing/update_excuses.html.gz#{$package}">testing</a>        href="http://ftp-master.debian.org/testing/update_excuses.html.gz#{$package}">testing</a>
605        even though the <xsl:value-of select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/@limit"/>-day        even though the <xsl:value-of select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/@limit"/>-day
606        delay is over. <a href="http://bjorn.haxx.se/debian/testing.pl?package={$package}">Check why</a>.</li>        delay is over.
607          <xsl:element name="a">
608            <xsl:attribute name="href">
609              <xsl:text>http://bjorn.haxx.se/debian/testing.pl?package=</xsl:text>
610              <xsl:call-template name="escape-name">
611                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
612              </xsl:call-template>
613            </xsl:attribute>
614            Check why
615          </xsl:element>
616          .</li>
617      </xsl:if>      </xsl:if>
618      <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">      <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">
619        <li>The package is severly out of date with respect to the Debian        <li>The package is severly out of date with respect to the Debian
# Line 512  Line 623 
623      </xsl:if>      </xsl:if>
624      <xsl:if test="$hasother">      <xsl:if test="$hasother">
625    
626          <!-- Override disparity handling. [JvW] -->
627          <xsl:if test="$other/@override='yes'">
628            <xsl:for-each select="$other/override/group">
629              <li>There were override disparities found in suite <xsl:value-of
630                  select="@suite"/>:
631                <ul>
632                  <xsl:for-each select="disparity">
633                    <li><xsl:value-of select="text()"/></li>
634                  </xsl:for-each>
635                </ul>
636              </li>
637            </xsl:for-each>
638          </xsl:if>
639    
640        <!-- Wnpp handling. [PvR] -->        <!-- Wnpp handling. [PvR] -->
641        <xsl:if test="$other/@wnpp='yes'">        <xsl:if test="$other/@wnpp='yes'">
642        <li>        <li>
# Line 519  Line 644 
644            <xsl:when test="$other/wnpp/@type='O'">            <xsl:when test="$other/wnpp/@type='O'">
645            <span style="font-weight: bold">This package has been orphaned</span>.            <span style="font-weight: bold">This package has been orphaned</span>.
646            This means that it does not have a real maintainer at the            This means that it does not have a real maintainer at the
647            moment. Please consider adopting this package if you have some            moment. Please consider adopting this package if you are interested in it.
           interests in it.  
648            </xsl:when>            </xsl:when>
649            <xsl:when test="$other/wnpp/@type='ITA'">            <xsl:when test="$other/wnpp/@type='ITA'">
650            This package has been orphaned, but someone is intending to            This package has been orphaned, but someone intends to maintain it.
           resume its maintenance.  
651            </xsl:when>            </xsl:when>
652            <xsl:when test="$other/wnpp/@type='RFA'">            <xsl:when test="$other/wnpp/@type='RFA'">
653            The current maintainer is looking for someone who can take over            The current maintainer is looking for someone who can take over
654            maintenance of this package. If you have some interests in this package,            maintenance of this package. If you are interested in this package,
655            please consider taking it over. Alternatively you may            please consider taking it over. Alternatively you may
656            want to be co-maintainer in order to help the actual maintainer.            want to be co-maintainer in order to help the actual maintainer.
657            </xsl:when>            </xsl:when>
658              <xsl:when test="$other/wnpp/@type='RFH'">
659              The current maintainer is looking for someone who can help with the
660              maintenance of this package. If you are interested in this package,
661              please consider helping out. One way you can help is offer to be a
662              co-maintainer or triage bugs in the bts.
663              </xsl:when>
664            <xsl:when test="$other/wnpp/@type='ITP'">            <xsl:when test="$other/wnpp/@type='ITP'">
665            The WNPP database contains an ITP (Intent To Package) entry for            The WNPP database contains an ITP (Intent To Package) entry for
666            this package. This is probably an error, as it has already been            this package. This is probably an error, as it has already been
# Line 542  Line 671 
671            for this package.  This is probably an error, as it has already            for this package.  This is probably an error, as it has already
672            been packaged.            been packaged.
673            </xsl:when>            </xsl:when>
674              <xsl:when test="$other/wnpp/@type='RM'">
675              <span style="font-weight: bold">This package has been requested to be
676              removed</span>.
677              This means that, when this request gets processed by an ftp-master, this
678              package will no longer be in unstable, and will automatically be removed
679              from testing too afterwards. If for some reason you want keep this
680              package in unstable, please discuss so in the bug.
681              </xsl:when>
682            <xsl:otherwise>            <xsl:otherwise>
683            The WNPP database contains an entry for this package,            The WNPP database contains an entry for this package,
684            but it is unclear what kind of entry it is. This is probably an error.            but it is unclear what kind of entry it is. This is probably an error.
# Line 633  Line 770 
770    </td></tr>    </td></tr>
771    </table>    </table>
772    <hr/>    <hr/>
773    Debian Package Tracking System - Copyright 2002-2003 Raphaël Hertzog<br/>    Debian Package Tracking System - Copyright 2002-2004 Raphaël Hertzog<br/>
774    Last modified : <xsl:value-of select="$date"/>    Last modified : <xsl:value-of select="$date"/>
775    </body>    </body>
776    </html>    </html>

Legend:
Removed from v.692  
changed lines
  Added in v.1021

  ViewVC Help
Powered by ViewVC 1.1.5