/[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 529 by hertzog, Thu Mar 13 20:32:47 2003 UTC revision 639 by hertzog, Fri Sep 26 11:16:38 2003 UTC
# Line 1  Line 1 
1  <?xml version="1.0" encoding="ISO-8859-1" ?>  <?xml version="1.0" encoding="ISO-8859-1" ?>
2    
3  <!--  <!--
4  # Copyright 2002 Raphaël Hertzog  # Copyright 2002-2003 Raphaël Hertzog
5  # This file is distributed under the terms of the General Public License  # This file is distributed under the terms of the General Public License
6  # version 2 or (at your option) any later version.  # version 2 or (at your option) any later version.
7  -->  -->
# 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.9'"/>  <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 63  Line 63 
63    </xsl:choose>    </xsl:choose>
64  </xsl:template>  </xsl:template>
65    
66    <!-- Convert + in %2b for URL escaping ... -->
67    <xsl:template name="escape-name">
68      <xsl:param name="text"/>
69      <xsl:if test="contains($text,'+')">
70        <xsl:value-of select="substring-before($text,'+')"/>
71        <xsl:text>%2b</xsl:text>
72        <xsl:call-template name="escape-name">
73        <xsl:with-param name="text"><xsl:value-of select="substring-after($text,'+')"/></xsl:with-param>
74        </xsl:call-template>
75      </xsl:if>
76      <xsl:if test="not(contains($text,'+'))">
77        <xsl:value-of select="$text"/>
78      </xsl:if>
79    </xsl:template>
80    
81    
82  <!-- All the work is done in a single template -->  <!-- All the work is done in a single template -->
83  <xsl:template match="source">  <xsl:template match="source">
84    
# Line 122  Line 138 
138    <td class="labelcell">Standards-Version</td>    <td class="labelcell">Standards-Version</td>
139    <td class="contentcell"><xsl:value-of select="standards-version"/></td>    <td class="contentcell"><xsl:value-of select="standards-version"/></td>
140    </tr>    </tr>
141      <tr class="normalrow">
142      <td class="labelcell">Priority &amp; Section</td>
143      <td class="contentcell"><xsl:value-of select="priority"/> - <xsl:value-of select="section"/></td>
144      </tr>
145    <xsl:if test="architecture!='any' and architecture!='all'">    <xsl:if test="architecture!='any' and architecture!='all'">
146    <tr class="normalrow">    <tr class="normalrow">
147    <td class="labelcell">Architecture</td>    <td class="labelcell">Architecture</td>
# Line 144  Line 164 
164    <tr class="normalrow">    <tr class="normalrow">
165    <td class="labelcell">Release Critical</td>    <td class="labelcell">Release Critical</td>
166    <td class="contentcell">    <td class="contentcell">
167    <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=critical&amp;sev-inc=grave&amp;sev-inc=serious"><xsl:if test="$hasother">    <xsl:element name="a">
168      <xsl:value-of select="$other/bugs/@rc"/>      <xsl:attribute name="href">
169    </xsl:if></a>        <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
170          <xsl:call-template name="escape-name">
171            <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
172          </xsl:call-template>
173          <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=critical&amp;sev-inc=grave&amp;sev-inc=serious</xsl:text>
174        </xsl:attribute>
175        <xsl:if test="$hasother">
176          <xsl:value-of select="$other/bugs/@rc"/>
177        </xsl:if>
178      </xsl:element>
179    </td>    </td>
180    </tr>    </tr>
181    <tr class="normalrow">    <tr class="normalrow">
182    <td class="labelcell">Important and Normal</td>    <td class="labelcell">Important and Normal</td>
183    <td class="contentcell">    <td class="contentcell">
184    <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=important&amp;sev-inc=normal"><xsl:if test="$hasother">    <xsl:element name="a">
185      <xsl:value-of select="$other/bugs/@normal"/>      <xsl:attribute name="href">
186    </xsl:if></a>        <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
187          <xsl:call-template name="escape-name">
188            <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
189          </xsl:call-template>
190          <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=important&amp;sev-inc=normal</xsl:text>
191        </xsl:attribute>
192        <xsl:if test="$hasother">
193          <xsl:value-of select="$other/bugs/@normal"/>
194        </xsl:if>
195      </xsl:element>
196    </td>    </td>
197    </tr>    </tr>
198    <tr class="normalrow">    <tr class="normalrow">
199    <td class="labelcell">Minor and Wishlist</td>    <td class="labelcell">Minor and Wishlist</td>
200    <td class="contentcell">    <td class="contentcell">
201    <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=minor&amp;sev-inc=wishlist"><xsl:if test="$hasother">    <xsl:element name="a">
202      <xsl:value-of select="$other/bugs/@wishlist"/>      <xsl:attribute name="href">
203    </xsl:if></a>        <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
204          <xsl:call-template name="escape-name">
205            <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
206          </xsl:call-template>
207          <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=minor&amp;sev-inc=wishlist</xsl:text>
208        </xsl:attribute>
209        <xsl:if test="$hasother">
210          <xsl:value-of select="$other/bugs/@wishlist"/>
211        </xsl:if>
212      </xsl:element>
213    </td>    </td>
214    </tr>    </tr>
215    <tr class="normalrow">    <tr class="normalrow">
216    <td class="labelcell">Fixed and Pending</td>    <td class="labelcell">Fixed and Pending</td>
217    <td class="contentcell">    <td class="contentcell">
218    <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed"><xsl:if test="$hasother">    <xsl:element name="a">
219      <xsl:value-of select="$other/bugs/@fixed"/>      <xsl:attribute name="href">
220    </xsl:if></a>        <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
221          <xsl:call-template name="escape-name">
222            <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
223          </xsl:call-template>
224          <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
225        </xsl:attribute>
226        <xsl:if test="$hasother">
227          <xsl:value-of select="$other/bugs/@fixed"/>
228        </xsl:if>
229      </xsl:element>
230    </td>    </td>
231    </tr>    </tr>
232    
# Line 212  Line 268 
268      <a href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>      <a href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>
269      <span style="font-size: 70%">      <span style="font-size: 70%">
270      (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:      (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:
271    <a title="critical, grave and serious" href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data={text()}&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=critical&amp;sev-inc=grave&amp;sev-inc=serious"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/></a>,  
272    <a title="important and normal" href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data={text()}&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=important&amp;sev-inc=normal"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@normal"/></a>,        <xsl:element name="a">
273    <a title="wishlist and minor" href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data={text()}&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=minor&amp;sev-inc=wishlist"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/></a>,          <xsl:attribute name="title">critical, grave and serious</xsl:attribute>
274    <a title="pending and fixed" href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data={text()}&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/></a>)          <xsl:attribute name="href">
275              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
276              <xsl:call-template name="escape-name">
277                <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
278              </xsl:call-template>
279              <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=critical&amp;sev-inc=grave&amp;sev-inc=serious</xsl:text>
280            </xsl:attribute>
281            <xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>
282          </xsl:element>,
283    
284          <xsl:element name="a">
285            <xsl:attribute name="title">important and normal</xsl:attribute>
286            <xsl:attribute name="href">
287            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
288            <xsl:call-template name="escape-name">
289              <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
290            </xsl:call-template>
291            <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=important&amp;sev-inc=normal</xsl:text>
292            </xsl:attribute>
293            <xsl:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>
294          </xsl:element>,
295    
296          <xsl:element name="a">
297            <xsl:attribute name="title">wishlist and minor</xsl:attribute>
298            <xsl:attribute name="href">
299              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
300              <xsl:call-template name="escape-name">
301                <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
302              </xsl:call-template>
303              <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=minor&amp;sev-inc=wishlist</xsl:text>
304            </xsl:attribute>
305            <xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>
306          </xsl:element>,
307    
308          <xsl:element name="a">
309            <xsl:attribute name="title">pending and fixed</xsl:attribute>
310            <xsl:attribute name="href">
311              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
312              <xsl:call-template name="escape-name">
313                <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
314              </xsl:call-template>
315              <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
316            </xsl:attribute>
317            <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>
318          </xsl:element>)
319      </span>      </span>
320      </li>      </li>
321    </xsl:for-each>    </xsl:for-each>
# Line 251  Line 351 
351    </xsl:if>    </xsl:if>
352    <xsl:if test="$hastesting">    <xsl:if test="$hastesting">
353    <tr class="normalrow">    <tr class="normalrow">
354    <td class="labelcell">Testing</td>    <td class="labelcell"><a href="http://www.debian.org/releases/testing/">Testing</a></td>
355    <td class="contentcell">    <td class="contentcell">
356    <xsl:value-of select="document(concat('../base/', $dir, '/testing.xml'))/source/version"/>    <xsl:value-of select="document(concat('../base/', $dir, '/testing.xml'))/source/version"/>
357    </td>    </td>
# Line 267  Line 367 
367    </xsl:if>    </xsl:if>
368    <xsl:if test="$hasstable">    <xsl:if test="$hasstable">
369    <tr class="normalrow">    <tr class="normalrow">
370    <td class="labelcell">Stable</td>    <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>
371    <td class="contentcell">    <td class="contentcell">
372    <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>    <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>
373    </td>    </td>
# Line 361  Line 461 
461        <li>The package is of priority standard or higher, you should really find some co-maintainers.</li>        <li>The package is of priority standard or higher, you should really find some co-maintainers.</li>
462      </xsl:if>      </xsl:if>
463      <xsl:if test="not(starts-with(standards-version, $lastsv))">      <xsl:if test="not(starts-with(standards-version, $lastsv))">
464        <li>You should update the package to follow the last version of        <li>The package should be updated to follow the last version of
465        Debian Policy (Standards-Version        <a href="http://www.debian.org/doc/debian-policy/">Debian Policy</a> (Standards-Version
466        <xsl:value-of select="$lastsv"/> instead of        <xsl:value-of select="$lastsv"/> instead of
467        <xsl:value-of select="standards-version"/>).</li>        <xsl:value-of select="standards-version"/>).</li>
468      </xsl:if>      </xsl:if>
# Line 387  Line 487 
487    <xsl:variable name="problems">    <xsl:variable name="problems">
488      <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">
489        <li>The package has not yet entered <a        <li>The package has not yet entered <a
490        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>
491        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
492        delay is over.</li>        delay is over.</li>
493      </xsl:if>      </xsl:if>
# Line 398  Line 498 
498        <xsl:value-of select="standards-version"/>...</li>        <xsl:value-of select="standards-version"/>...</li>
499      </xsl:if>      </xsl:if>
500      <xsl:if test="$hasother">      <xsl:if test="$hasother">
501    
502          <!-- Wnpp handling. [PvR] -->
503          <xsl:if test="$other/@wnpp='yes'">
504          <li>
505            <xsl:choose>
506              <xsl:when test="$other/wnpp/@type='O'">
507              <span style="font-weight: bold">This package has been orphaned</span>.
508              This means that it does not have a real maintainer at the
509              moment. Please consider adopting this package if you have some
510              interests in it.
511              </xsl:when>
512              <xsl:when test="$other/wnpp/@type='ITA'">
513              This package has been orphaned, but someone is intending to
514              resume its maintenance.
515              </xsl:when>
516              <xsl:when test="$other/wnpp/@type='RFA'">
517              The current maintainer is looking for someone who can take over
518              maintenance of this package. If you have some interests in this package,
519              please consider taking it over. Alternatively you may
520              want to be co-maintainer in order to help the actual maintainer.
521              </xsl:when>
522              <xsl:when test="$other/wnpp/@type='ITP'">
523              The WNPP database contains an ITP (Intent To Package) entry for
524              this package. This is probably an error, as it has already been
525              packaged.
526              </xsl:when>
527              <xsl:when test="$other/wnpp/@type='RFP'">
528              The WNPP database contains an RFP (Request For Package) entry
529              for this package.  This is probably an error, as it has already
530              been packaged.
531              </xsl:when>
532              <xsl:otherwise>
533              The WNPP database contains an entry for this package,
534              but it is unclear what kind of entry it is. This is probably an error.
535              </xsl:otherwise>
536            </xsl:choose>
537            <xsl:variable name="bn" select="$other/wnpp/@bugnumber"/>
538            Please see bug number <a href="http://bugs.debian.org/{$bn}">
539            #<xsl:value-of select="$bn"/></a> for more information.
540          </li>
541          </xsl:if>
542    
543          <!-- Misc problems reported -->
544        <xsl:for-each select="$other/problems/item">        <xsl:for-each select="$other/problems/item">
545          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem"/>
546        </xsl:for-each>        </xsl:for-each>
# Line 427  Line 570 
570    </td>    </td>
571    </tr>    </tr>
572    </xsl:if>    </xsl:if>
573    
574    
575    <xsl:variable name="static">    <xsl:variable name="static">
576      <xsl:if test="$hasnews">      <xsl:if test="$hasnews">
# Line 467  Line 610 
610    <!-- END RIGHT SIDE -->    <!-- END RIGHT SIDE -->
611    </td></tr>    </td></tr>
612    </table>    </table>
   Warning: the "Latest News" section is not yet automatically updated. I'm waiting  
   that master.debian.org is upgraded to woody (stable) in order to be able  
   to setup the required scripts. Those scripts will automatically update the  
   "Latest News" and they'll let you add your own news items. Please be patient.  
613    <hr/>    <hr/>
614    Debian Package Tracking System - Copyright 2002 Raphaël Hertzog<br/>    Debian Package Tracking System - Copyright 2002-2003 Raphaël Hertzog<br/>
615    Last modified : <xsl:value-of select="$date"/>    Last modified : <xsl:value-of select="$date"/>
616    </body>    </body>
617    </html>    </html>

Legend:
Removed from v.529  
changed lines
  Added in v.639

  ViewVC Help
Powered by ViewVC 1.1.5