/[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 479 by hertzog, Sat Jan 11 22:56:05 2003 UTC revision 600 by hertzog, Sat Jul 12 12:40:46 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.8'"/>  <xsl:variable name="lastsv" select="'3.6.0'"/>
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 70  Line 86 
86    <html>    <html>
87    <head>    <head>
88    <meta name="ROBOTS" content="NOFOLLOW"/>    <meta name="ROBOTS" content="NOFOLLOW"/>
89    <link rel="stylesheet" href="../common/pts.css"/>    <link title="Default" rel="stylesheet" href="../common/pts.css"/>
90      <link title="Standard link rendering" rel="alternate stylesheet" href="../common/pts2.css"/>
91    <title>Overview of <xsl:value-of select="$package"/> source package</title>    <title>Overview of <xsl:value-of select="$package"/> source package</title>
92    </head>    </head>
93    <body>    <body>
# Line 121  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      <xsl:if test="architecture!='any' and architecture!='all'">
142      <tr class="normalrow">
143      <td class="labelcell">Architecture</td>
144      <td class="contentcell"><xsl:value-of select="architecture"/></td>
145      </tr>
146      </xsl:if>
147    
148    <tr class="titlerow">    <tr class="titlerow">
149    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
# Line 137  Line 160 
160    <tr class="normalrow">    <tr class="normalrow">
161    <td class="labelcell">Release Critical</td>    <td class="labelcell">Release Critical</td>
162    <td class="contentcell">    <td class="contentcell">
163    <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">
164      <xsl:value-of select="$other/bugs/@rc"/>      <xsl:attribute name="href">
165    </xsl:if></a>        <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
166          <xsl:call-template name="escape-name">
167            <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
168          </xsl:call-template>
169          <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>
170        </xsl:attribute>
171        <xsl:if test="$hasother">
172          <xsl:value-of select="$other/bugs/@rc"/>
173        </xsl:if>
174      </xsl:element>
175    </td>    </td>
176    </tr>    </tr>
177    <tr class="normalrow">    <tr class="normalrow">
178    <td class="labelcell">Important and Normal</td>    <td class="labelcell">Important and Normal</td>
179    <td class="contentcell">    <td class="contentcell">
180    <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">
181      <xsl:value-of select="$other/bugs/@normal"/>      <xsl:attribute name="href">
182    </xsl:if></a>        <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
183          <xsl:call-template name="escape-name">
184            <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
185          </xsl:call-template>
186          <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>
187        </xsl:attribute>
188        <xsl:if test="$hasother">
189          <xsl:value-of select="$other/bugs/@normal"/>
190        </xsl:if>
191      </xsl:element>
192    </td>    </td>
193    </tr>    </tr>
194    <tr class="normalrow">    <tr class="normalrow">
195    <td class="labelcell">Minor and Wishlist</td>    <td class="labelcell">Minor and Wishlist</td>
196    <td class="contentcell">    <td class="contentcell">
197    <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">
198      <xsl:value-of select="$other/bugs/@wishlist"/>      <xsl:attribute name="href">
199    </xsl:if></a>        <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
200          <xsl:call-template name="escape-name">
201            <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
202          </xsl:call-template>
203          <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>
204        </xsl:attribute>
205        <xsl:if test="$hasother">
206          <xsl:value-of select="$other/bugs/@wishlist"/>
207        </xsl:if>
208      </xsl:element>
209    </td>    </td>
210    </tr>    </tr>
211    <tr class="normalrow">    <tr class="normalrow">
212    <td class="labelcell">Fixed and Pending</td>    <td class="labelcell">Fixed and Pending</td>
213    <td class="contentcell">    <td class="contentcell">
214    <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">
215      <xsl:value-of select="$other/bugs/@fixed"/>      <xsl:attribute name="href">
216    </xsl:if></a>        <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
217          <xsl:call-template name="escape-name">
218            <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
219          </xsl:call-template>
220          <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
221        </xsl:attribute>
222        <xsl:if test="$hasother">
223          <xsl:value-of select="$other/bugs/@fixed"/>
224        </xsl:if>
225      </xsl:element>
226    </td>    </td>
227    </tr>    </tr>
228    
# Line 205  Line 264 
264      <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>
265      <span style="font-size: 70%">      <span style="font-size: 70%">
266      (<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>:
267    <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>,  
268    <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">
269    <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>
270    <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">
271              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
272              <xsl:call-template name="escape-name">
273                <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
274              </xsl:call-template>
275              <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>
276            </xsl:attribute>
277            <xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>
278          </xsl:element>,
279    
280          <xsl:element name="a">
281            <xsl:attribute name="title">important and normal</xsl:attribute>
282            <xsl:attribute name="href">
283            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
284            <xsl:call-template name="escape-name">
285              <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
286            </xsl:call-template>
287            <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>
288            </xsl:attribute>
289            <xsl:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>
290          </xsl:element>,
291    
292          <xsl:element name="a">
293            <xsl:attribute name="title">wishlist and minor</xsl:attribute>
294            <xsl:attribute name="href">
295              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
296              <xsl:call-template name="escape-name">
297                <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
298              </xsl:call-template>
299              <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>
300            </xsl:attribute>
301            <xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>
302          </xsl:element>,
303    
304          <xsl:element name="a">
305            <xsl:attribute name="title">pending and fixed</xsl:attribute>
306            <xsl:attribute name="href">
307              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
308              <xsl:call-template name="escape-name">
309                <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
310              </xsl:call-template>
311              <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
312            </xsl:attribute>
313            <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>
314          </xsl:element>)
315      </span>      </span>
316      </li>      </li>
317    </xsl:for-each>    </xsl:for-each>
# Line 244  Line 347 
347    </xsl:if>    </xsl:if>
348    <xsl:if test="$hastesting">    <xsl:if test="$hastesting">
349    <tr class="normalrow">    <tr class="normalrow">
350    <td class="labelcell">Testing</td>    <td class="labelcell"><a href="http://www.debian.org/releases/testing/">Testing</a></td>
351    <td class="contentcell">    <td class="contentcell">
352    <xsl:value-of select="document(concat('../base/', $dir, '/testing.xml'))/source/version"/>    <xsl:value-of select="document(concat('../base/', $dir, '/testing.xml'))/source/version"/>
353    </td>    </td>
# Line 260  Line 363 
363    </xsl:if>    </xsl:if>
364    <xsl:if test="$hasstable">    <xsl:if test="$hasstable">
365    <tr class="normalrow">    <tr class="normalrow">
366    <td class="labelcell">Stable</td>    <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>
367    <td class="contentcell">    <td class="contentcell">
368    <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>    <xsl:value-of select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/>
369    </td>    </td>
# Line 354  Line 457 
457        <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>
458      </xsl:if>      </xsl:if>
459      <xsl:if test="not(starts-with(standards-version, $lastsv))">      <xsl:if test="not(starts-with(standards-version, $lastsv))">
460        <li>You should update the package to follow the last version of        <li>The package should be updated to follow the last version of
461        Debian Policy (Standards-Version        <a href="http://www.debian.org/doc/debian-policy/">Debian Policy</a> (Standards-Version
462        <xsl:value-of select="$lastsv"/> instead of        <xsl:value-of select="$lastsv"/> instead of
463        <xsl:value-of select="standards-version"/>).</li>        <xsl:value-of select="standards-version"/>).</li>
464      </xsl:if>      </xsl:if>
# Line 391  Line 494 
494        <xsl:value-of select="standards-version"/>...</li>        <xsl:value-of select="standards-version"/>...</li>
495      </xsl:if>      </xsl:if>
496      <xsl:if test="$hasother">      <xsl:if test="$hasother">
497    
498          <!-- Wnpp handling. [PvR] -->
499          <xsl:if test="$other/@wnpp='yes'">
500          <li>
501            <xsl:choose>
502              <xsl:when test="$other/wnpp/@type='O'">
503              <span style="font-weight: bold">This package has been orphaned</span>.
504              This means that it does not have a real maintainer at the
505              moment. Please consider adopting this package if you have some
506              interests in it.
507              </xsl:when>
508              <xsl:when test="$other/wnpp/@type='ITA'">
509              This package has been orphaned, but someone is intending to
510              resume its maintenance.
511              </xsl:when>
512              <xsl:when test="$other/wnpp/@type='RFA'">
513              The current maintainer is looking for someone who can take over
514              maintenance of this package. If you have some interests in this package,
515              please consider taking it over. Alternatively you may
516              want to be co-maintainer in order to help the actual maintainer.
517              </xsl:when>
518              <xsl:when test="$other/wnpp/@type='ITP'">
519              The WNPP database contains an ITP (Intent To Package) entry for
520              this package. This is probably an error, as it has already been
521              packaged.
522              </xsl:when>
523              <xsl:when test="$other/wnpp/@type='RFP'">
524              The WNPP database contains an RFP (Request For Package) entry
525              for this package.  This is probably an error, as it has already
526              been packaged.
527              </xsl:when>
528              <xsl:otherwise>
529              The WNPP database contains an entry for this package,
530              but it is unclear what kind of entry it is. This is probably an error.
531              </xsl:otherwise>
532            </xsl:choose>
533            <xsl:variable name="bn" select="$other/wnpp/@bugnumber"/>
534            Please see bug number <a href="http://bugs.debian.org/{$bn}">
535            #<xsl:value-of select="$bn"/></a> for more information.
536          </li>
537          </xsl:if>
538    
539          <!-- Misc problems reported -->
540        <xsl:for-each select="$other/problems/item">        <xsl:for-each select="$other/problems/item">
541          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem"/>
542        </xsl:for-each>        </xsl:for-each>
# Line 420  Line 566 
566    </td>    </td>
567    </tr>    </tr>
568    </xsl:if>    </xsl:if>
569    
570    
571    <xsl:variable name="static">    <xsl:variable name="static">
572      <xsl:if test="$hasnews">      <xsl:if test="$hasnews">
# Line 460  Line 606 
606    <!-- END RIGHT SIDE -->    <!-- END RIGHT SIDE -->
607    </td></tr>    </td></tr>
608    </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.  
609    <hr/>    <hr/>
610    Debian Package Tracking System - Copyright 2002 Raphaël Hertzog<br/>    Debian Package Tracking System - Copyright 2002-2003 Raphaël Hertzog<br/>
611    Last modified : <xsl:value-of select="$date"/>    Last modified : <xsl:value-of select="$date"/>
612    </body>    </body>
613    </html>    </html>

Legend:
Removed from v.479  
changed lines
  Added in v.600

  ViewVC Help
Powered by ViewVC 1.1.5