/[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 579 by hertzog, Sat May 24 18:27:18 2003 UTC revision 949 by jeroen, Sun Feb 13 18:29:50 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"/>
# Line 29  Line 29 
29    
30  <!-- Those variables controls the todo and problem item concerning  <!-- Those variables controls the todo and problem item concerning
31       standards-version not being up to date -->       standards-version not being up to date -->
32  <xsl:variable name="lastsv" select="'3.5.10'"/>  <xsl:variable name="lastsv" select="'3.6.1'"/>
33  <xsl:variable name="lastmajorsv" select="'3.'"/>  <xsl:variable name="lastmajorsv" select="'3.'"/>
34    
35  <!-- Named templates aka functions -->  <!-- Named templates aka functions -->
36  <xsl:template name="mirror">  <xsl:template name="mirror">
37    <xsl:choose>    <xsl:choose>
38      <xsl:when test="contains(source/section, 'non-US')">      <xsl:when test="contains(/source/section, 'non-US')">
39        <xsl:text>http://non-us.debian.org/debian-non-US</xsl:text>        <xsl:text>http://non-us.debian.org/debian-non-US</xsl:text>
40      </xsl:when>      </xsl:when>
41      <xsl:otherwise>      <xsl:otherwise>
# Line 51  Line 51 
51          <xsl:text>[</xsl:text>          <xsl:text>[</xsl:text>
52          <xsl:value-of select="@date"/>          <xsl:value-of select="@date"/>
53          <xsl:text>] </xsl:text>          <xsl:text>] </xsl:text>
54        </xsl:if><a href="{@url}"><xsl:value-of select="text()"/></a></li>        </xsl:if><a href="{@url}">
55          <xsl:value-of select="text()"/></a><xsl:if test="@from">
56            <xsl:text> (</xsl:text>
57            <xsl:value-of select="@from"/>
58            <xsl:text>)</xsl:text></xsl:if></li>
59      </xsl:when>      </xsl:when>
60      <xsl:otherwise>      <xsl:otherwise>
61        <li><xsl:if test="@date">        <li><xsl:if test="@date">
# Line 93  Line 97 
97    <body>    <body>
98    
99    <form method="get" action="/common/index.html" style="float: right;">    <form method="get" action="/common/index.html" style="float: right;">
100    Jump to package : <br/>    <!-- this link should make lynx/links happy [FG] -->
101      Jump to package (<a href="/">home page</a>): <br/>
102    <input type="text" name="src" value=""/>    <input type="text" name="src" value=""/>
103    </form>    </form>
104    <h1>Overview of <xsl:value-of select="$package"/> source package</h1>    <h1>Overview of <xsl:value-of select="$package"/> source package</h1>
# Line 119  Line 124 
124    </xsl:if>    </xsl:if>
125    <tr class="normalrow">    <tr class="normalrow">
126    <td class="labelcell">Maintainer</td>    <td class="labelcell">Maintainer</td>
127    <td class="contentcell"><a class="email" href="http://qa.debian.org/developer.php?login={maintainer/email}">    <td class="contentcell">
128    <xsl:value-of select="maintainer/name"/></a> [<a class="email" href="mailto:{maintainer/email}">mail</a>]</td>    <xsl:element name="a">
129        <xsl:attribute name="href">
130          <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
131          <xsl:call-template name="escape-name">
132            <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>
133          </xsl:call-template>
134        </xsl:attribute>
135        <xsl:value-of select="maintainer/name"/>
136      </xsl:element>
137      [<a class="email" href="mailto:{maintainer/email}">mail</a>]
138      </td>
139    </tr>    </tr>
140    <tr class="normalrow">    <tr class="normalrow">
141    <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 138  Line 153 
153    <td class="labelcell">Standards-Version</td>    <td class="labelcell">Standards-Version</td>
154    <td class="contentcell"><xsl:value-of select="standards-version"/></td>    <td class="contentcell"><xsl:value-of select="standards-version"/></td>
155    </tr>    </tr>
156      <tr class="normalrow">
157      <td class="labelcell">Priority &amp; Section</td>
158      <td class="contentcell"><xsl:value-of select="priority"/> - <xsl:value-of select="section"/></td>
159      </tr>
160    <xsl:if test="architecture!='any' and architecture!='all'">    <xsl:if test="architecture!='any' and architecture!='all'">
161    <tr class="normalrow">    <tr class="normalrow">
162    <td class="labelcell">Architecture</td>    <td class="labelcell">Architecture</td>
# Line 152  Line 171 
171    <tr class="normalrow">    <tr class="normalrow">
172    <td class="labelcell">All bugs</td>    <td class="labelcell">All bugs</td>
173    <td class="contentcell">    <td class="contentcell">
174    <a href="http://bugs.debian.org/src:{$package}"><xsl:if test="$hasother">    <xsl:element name="a">
175      <xsl:value-of select="$other/bugs/@all"/>      <xsl:attribute name="href">
176    </xsl:if></a>        <xsl:text>http://bugs.debian.org/src:</xsl:text>
177          <xsl:call-template name="escape-name">
178            <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
179          </xsl:call-template>
180        </xsl:attribute>
181        <xsl:if test="$hasother">
182          <xsl:value-of select="$other/bugs/@all"/>
183        </xsl:if>
184      </xsl:element>
185    </td>    </td>
186    </tr>    </tr>
187    <tr class="normalrow">    <tr class="normalrow">
# Line 385  Line 412 
412    <tr>    <tr>
413    <td class="contentcell" colspan="2" style="text-align: left">    <td class="contentcell" colspan="2" style="text-align: left">
414    <xsl:if test="architecture!='all'">    <xsl:if test="architecture!='all'">
415      <li><a href="http://buildd.debian.org/build.php?pkg={$package}">Buildd logs</a></li>      <li>
416          <xsl:element name="a">
417            <xsl:attribute name="href">
418              <xsl:text>http://buildd.debian.org/build.php?pkg=</xsl:text>
419              <xsl:call-template name="escape-name">
420                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
421              </xsl:call-template>
422            </xsl:attribute>
423            <xsl:text>Buildd logs</xsl:text>
424          </xsl:element>
425        </li>
426    </xsl:if>    </xsl:if>
427      <li><a href="http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=pdesc&amp;package={$package}">Description's translations (DDTP)</a></li>    <!-- DISABLED until ddtp.debian.org is back up
428        <li>
429          <xsl:element name="a">
430            <xsl:attribute name="href">
431              <xsl:text>http://ddtp.debian.org/stats/pdesc/report.cgi?package=</xsl:text>
432              <xsl:call-template name="escape-name">
433                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
434              </xsl:call-template>
435              <xsl:text>&amp;lang=all&amp;type=src-drvbin&amp;subword=0</xsl:text>
436            </xsl:attribute>
437            Description's translations (DDTP)
438          </xsl:element>
439        </li>
440    <xsl:if test="$other/@debconf='yes'">    <xsl:if test="$other/@debconf='yes'">
441      <li><a href="http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package={$package}">Debconf templates's translations (DDTP)</a></li>      <li>
442          <xsl:element name="a">
443            <xsl:attribute name="href">
444              <xsl:text>http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package=</xsl:text>
445              <xsl:call-template name="escape-name">
446                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
447              </xsl:call-template>
448            </xsl:attribute>
449            Debconf templates's translations (DDTP)
450          </xsl:element>
451        </li>
452    </xsl:if>    </xsl:if>
453      -->
454    <xsl:if test="$hasunstable and $other/debcheck/@unstable='yes'">    <xsl:if test="$hasunstable and $other/debcheck/@unstable='yes'">
455      <li><a href="http://qa.debian.org/debcheck.php?dist=unstable&amp;package={$package}">Debcheck on unstable</a></li>      <li>
456          <xsl:element name="a">
457            <xsl:attribute name="href">
458              <xsl:text>http://qa.debian.org/debcheck.php?dist=unstable&amp;package=</xsl:text>
459              <xsl:call-template name="escape-name">
460                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
461              </xsl:call-template>
462            </xsl:attribute>
463            <xsl:text>Debcheck on unstable</xsl:text>
464          </xsl:element>
465        </li>
466    </xsl:if>    </xsl:if>
467    <xsl:if test="$hastesting and $other/debcheck/@testing='yes'">    <xsl:if test="$hastesting and $other/debcheck/@testing='yes'">
468      <li><a href="http://qa.debian.org/debcheck.php?dist=testing&amp;package={$package}">Debcheck on testing</a></li>      <li>
469          <xsl:element name="a">
470            <xsl:attribute name="href">
471              <xsl:text>http://qa.debian.org/debcheck.php?dist=testing&amp;package=</xsl:text>
472              <xsl:call-template name="escape-name">
473                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
474              </xsl:call-template>
475            </xsl:attribute>
476            <xsl:text>Debcheck on testing</xsl:text>
477          </xsl:element>
478        </li>
479    </xsl:if>    </xsl:if>
480    <xsl:if test="$hasstable and $other/debcheck/@stable='yes'">    <xsl:if test="$hasstable and $other/debcheck/@stable='yes'">
481      <li><a href="http://qa.debian.org/debcheck.php?dist=stable&amp;package={$package}">Debcheck on stable</a></li>      <li>
482          <xsl:element name="a">
483            <xsl:attribute name="href">
484              <xsl:text>http://qa.debian.org/debcheck.php?dist=stable&amp;package=</xsl:text>
485              <xsl:call-template name="escape-name">
486                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
487              </xsl:call-template>
488            </xsl:attribute>
489            <xsl:text>Debcheck on stable</xsl:text>
490          </xsl:element>
491        </li>
492    </xsl:if>    </xsl:if>
493      <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->
494                                  <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-/()&#34; ', &quot;'&quot;)"/>
495      <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '____________________')"/>
496        <li><a href="http://lintian.debian.org/reports/m{$_name}.html#{$package}">Lintian report</a></li>
497    
498    </td>    </td>
499    </tr>    </tr>
500    
# Line 466  Line 561 
561        <xsl:for-each select="$other/todo/item">        <xsl:for-each select="$other/todo/item">
562          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem"/>
563        </xsl:for-each>        </xsl:for-each>
564          <!-- new upstream version goes in todo [FG] -->
565          <xsl:if test="$other/@watch='yes' and $other/watch/@new!='0'">
566            <li>A new upstream version was found:
567               (<xsl:value-of select="$other/watch/@new"/>). <a href="{$other/watch/@url}"><xsl:value-of select="$other/watch/@url"/></a></li>
568          </xsl:if>
569      </xsl:if>      </xsl:if>
570    </xsl:variable>    </xsl:variable>
571    <xsl:if test="count($todo)>0 and string($todo)!=''">    <xsl:if test="count($todo)>0 and string($todo)!=''">
# Line 483  Line 583 
583    <xsl:variable name="problems">    <xsl:variable name="problems">
584      <xsl:if test="$hasexcuse and document(concat('../base/', $dir, '/excuse.xml'))/excuse/@problematic">      <xsl:if test="$hasexcuse and document(concat('../base/', $dir, '/excuse.xml'))/excuse/@problematic">
585        <li>The package has not yet entered <a        <li>The package has not yet entered <a
586        href="http://ftp-master.debian.org/testing/update_excuses.html#{$package}">testing</a>        href="http://ftp-master.debian.org/testing/update_excuses.html.gz#{$package}">testing</a>
587        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
588        delay is over.</li>        delay is over.
589          <xsl:element name="a">
590            <xsl:attribute name="href">
591              <xsl:text>http://bjorn.haxx.se/debian/testing.pl?package=</xsl:text>
592              <xsl:call-template name="escape-name">
593                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
594              </xsl:call-template>
595            </xsl:attribute>
596            Check why
597          </xsl:element>
598          .</li>
599      </xsl:if>      </xsl:if>
600      <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">      <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">
601        <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 495  Line 605 
605      </xsl:if>      </xsl:if>
606      <xsl:if test="$hasother">      <xsl:if test="$hasother">
607    
608          <!-- Override disparity handling. [JvW] -->
609          <xsl:if test="$other/@override='yes'">
610            <xsl:for-each select="$other/override/group">
611              <li>There were override disparities found in suite <xsl:value-of
612                  select="@suite"/>:
613                <ul>
614                  <xsl:for-each select="disparity">
615                    <li><xsl:value-of select="text()"/></li>
616                  </xsl:for-each>
617                </ul>
618              </li>
619            </xsl:for-each>
620          </xsl:if>
621    
622        <!-- Wnpp handling. [PvR] -->        <!-- Wnpp handling. [PvR] -->
623        <xsl:if test="$other/@wnpp='yes'">        <xsl:if test="$other/@wnpp='yes'">
624        <li>        <li>
# Line 502  Line 626 
626            <xsl:when test="$other/wnpp/@type='O'">            <xsl:when test="$other/wnpp/@type='O'">
627            <span style="font-weight: bold">This package has been orphaned</span>.            <span style="font-weight: bold">This package has been orphaned</span>.
628            This means that it does not have a real maintainer at the            This means that it does not have a real maintainer at the
629            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.  
630            </xsl:when>            </xsl:when>
631            <xsl:when test="$other/wnpp/@type='ITA'">            <xsl:when test="$other/wnpp/@type='ITA'">
632            This package has been orphaned, but someone is intending to            This package has been orphaned, but someone intends to maintain it.
           resume its maintenance.  
633            </xsl:when>            </xsl:when>
634            <xsl:when test="$other/wnpp/@type='RFA'">            <xsl:when test="$other/wnpp/@type='RFA'">
635            The current maintainer is looking for someone who can take over            The current maintainer is looking for someone who can take over
636            maintenance of this package. If you have some interests in this package,            maintenance of this package. If you are interested in this package,
637            please consider taking it over. Alternatively you may            please consider taking it over. Alternatively you may
638            want to be co-maintainer in order to help the actual maintainer.            want to be co-maintainer in order to help the actual maintainer.
639            </xsl:when>            </xsl:when>
640              <xsl:when test="$other/wnpp/@type='RFH'">
641              The current maintainer is looking for someone who can help with the
642              maintenance of this package. If you are interested in this package,
643              please consider helping out. One way you can help is offer to be a
644              co-maintainer or triage bugs in the bts.
645              </xsl:when>
646            <xsl:when test="$other/wnpp/@type='ITP'">            <xsl:when test="$other/wnpp/@type='ITP'">
647            The WNPP database contains an ITP (Intent To Package) entry for            The WNPP database contains an ITP (Intent To Package) entry for
648            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 525  Line 653 
653            for this package.  This is probably an error, as it has already            for this package.  This is probably an error, as it has already
654            been packaged.            been packaged.
655            </xsl:when>            </xsl:when>
656              <xsl:when test="$other/wnpp/@type='RM'">
657              <span style="font-weight: bold">This package has been requested to be
658              removed</span>.
659              This means that, when this request gets processed by an ftp-master, this
660              package will no longer be in unstable, and will automatically be removed
661              from testing too afterwards. If for some reason you want keep this
662              package in unstable, please discuss so in the bug.
663              </xsl:when>
664            <xsl:otherwise>            <xsl:otherwise>
665            The WNPP database contains an entry for this package,            The WNPP database contains an entry for this package,
666            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 535  Line 671 
671          #<xsl:value-of select="$bn"/></a> for more information.          #<xsl:value-of select="$bn"/></a> for more information.
672        </li>        </li>
673        </xsl:if>        </xsl:if>
674    
675        <!-- uscan output if present [FG] -->
676        <xsl:if test="$other/@watch='yes'">
677          <li>
678          <xsl:if test="$other/watch/@warning!=''">
679            uscan had problems while searching for a new upstream version: <xsl:value-of select="$other/watch/@warning"/>
680          </xsl:if>
681          </li>
682        </xsl:if>
683    
684        <!-- Misc problems reported -->        <!-- Misc problems reported -->
685        <xsl:for-each select="$other/problems/item">        <xsl:for-each select="$other/problems/item">
# Line 607  Line 752 
752    </td></tr>    </td></tr>
753    </table>    </table>
754    <hr/>    <hr/>
755    Debian Package Tracking System - Copyright 2002-2003 Raphaël Hertzog<br/>    Debian Package Tracking System - Copyright 2002-2004 Raphaël Hertzog<br/>
756    Last modified : <xsl:value-of select="$date"/>    Last modified : <xsl:value-of select="$date"/>
757    </body>    </body>
758    </html>    </html>

Legend:
Removed from v.579  
changed lines
  Added in v.949

  ViewVC Help
Powered by ViewVC 1.1.5