/[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 1090 by hertzog, Sat Sep 10 17:50:51 2005 UTC revision 1766 by zack, Sat Dec 1 09:04:17 2007 UTC
# Line 1  Line 1 
1  <?xml version="1.0" encoding="ISO-8859-1" ?>  <?xml version="1.0" encoding="utf-8" ?>
2    
3  <!--  <!--
4  # Copyright 2002-2003 Raphaël Hertzog  # Copyright 2002-2005 Raphaël Hertzog and others
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 33  Line 33 
33    
34  <!-- Those variables controls the todo and problem item concerning  <!-- Those variables controls the todo and problem item concerning
35       standards-version not being up to date -->       standards-version not being up to date -->
36  <xsl:variable name="lastsv" select="'3.6.2'"/>  <xsl:variable name="lastsv" select="'3.7.2'"/>
37  <xsl:variable name="lastmajorsv" select="'3.'"/>  <xsl:variable name="lastmajorsv" select="'3.'"/>
38    
39  <!-- Named templates aka functions -->  <!-- Named templates aka functions -->
# Line 64  Line 64 
64    </xsl:choose>    </xsl:choose>
65  </xsl:template>  </xsl:template>
66    
67  <!-- Convert + in %2b for URL escaping ... -->  <!-- Convert + in %2b for URL escaping. Should actually first also do
68    other-to-%xx, especially % to %25... Fortunately, that's rare -->
69  <xsl:template name="escape-name">  <xsl:template name="escape-name">
70    <xsl:param name="text"/>    <xsl:param name="text"/>
71    <xsl:if test="contains($text,'+')">    <xsl:if test="contains($text,'+')">
# Line 90  Line 91 
91    </xsl:if>    </xsl:if>
92  </xsl:template>  </xsl:template>
93    
94    <xsl:template name="add-vcs-info">
95      <xsl:if test="repository">
96        <tr>
97          <td class="labelcell">
98            <xsl:text>Version Control</xsl:text>
99          </td>
100          <td class="contentcell">
101            <xsl:if test="repository/vcs[@kind='browser']">
102              <a href="{repository/vcs[@kind='browser']/@url}">
103                <xsl:text>browser</xsl:text>
104              </a>
105              <br />
106            </xsl:if>
107            <xsl:if test="repository/vcs[@kind!='browser']">
108              <xsl:text>raw: </xsl:text>
109              <xsl:for-each select="repository/vcs[@kind!='browser']">
110                <xsl:sort select="@kind" />
111                <a href="{@url}">
112                  <xsl:value-of select="@kind" />
113                </a>
114                <xsl:if test="position()!=last()">
115                  <xsl:text>, </xsl:text>
116                </xsl:if>
117              </xsl:for-each>
118            </xsl:if>
119          </td>
120        </tr>
121      </xsl:if>
122    </xsl:template>
123    
124    <xsl:template name="add-maintenance-info">
125      <xsl:variable name="dm">
126        <xsl:if test="dm-upload-allowed and string(dm-upload-allowed)='yes'">
127          <xsl:text>true</xsl:text>
128        </xsl:if>
129      </xsl:variable>
130      <xsl:variable name="lownmu">
131        <xsl:if test="maintainer/low-threshold-nmu
132            and string(maintainer/low-threshold-nmu)='yes'">
133          <xsl:text>true</xsl:text>
134        </xsl:if>
135      </xsl:variable>
136    
137      <xsl:if test="string($dm)!='' or string($lownmu)!=''">
138        <tr>
139          <td class="labelcell">
140            <xsl:text>Maintenance info</xsl:text>
141          </td>
142          <td class="contentcell">
143    
144            <xsl:if test="string($dm)!=''">
145              <span class="dm-tag">
146                <a href="http://www.debian.org/vote/2007/vote_003"><acronym title="Debian Maintainer Upload Allowed: can be uploaded by Debian Maintainers">DMUA</acronym></a>
147              </span>
148            </xsl:if>
149    
150            <xsl:if test="string($lownmu)!=''">
151              <span class="lownmu-tag">
152                <a href="http://wiki.debian.org/LowThresholdNmu"><acronym
153                    title="maintainer agrees with Low Threshold NMU, see wiki page for details">LowNMU</acronym></a>
154              </span>
155            </xsl:if>
156          </td>
157        </tr>
158      </xsl:if>
159    </xsl:template>
160    
161    <xsl:template name="output-news">
162      <xsl:param name="news" />
163    
164      <xsl:if test="count($news)>0 and string($news)!=''">
165        <tr class="titlerow">
166        <td class="titlecell">
167          Latest News <a class="feedlink" href="{$package}/news.rss20.xml">RSS</a>
168        </td></tr>
169        <tr class="normalrow">
170        <td class="contentcell2">
171        <ul><xsl:copy-of select="$news"/></ul>
172        </td>
173        </tr>
174      </xsl:if>
175    </xsl:template>
176    
177    <xsl:template name="output-static">
178      <xsl:param name="static" />
179    
180      <xsl:if test="count($static)>0 and string($static)!=''">
181        <tr class="titlerow">
182        <td class="titlecell">
183        Static Information
184        </td></tr>
185        <tr class="normalrow">
186        <td class="contentcell2">
187        <ul><xsl:copy-of select="$static"/></ul>
188        </td>
189        </tr>
190      </xsl:if>
191    </xsl:template>
192    
193    <xsl:template name="categorize-srcfile">
194      <!-- used to recognize (and tag afterwards) well-known type of source package
195        components: dsc, diff, orig -->
196      <xsl:choose>
197        <xsl:when test="substring(filename,string-length(filename)-2, 3)='dsc'">
198          <xsl:text>dsc</xsl:text>
199        </xsl:when>
200        <xsl:when test="substring(filename,string-length(filename)-6, 7)='diff.gz'">
201          <xsl:text>diff</xsl:text>
202        </xsl:when>
203        <xsl:when test="substring(filename,string-length(filename)-10, 8)='orig.tar'">
204          <xsl:text>orig</xsl:text>
205        </xsl:when>
206        <xsl:otherwise><xsl:text></xsl:text></xsl:otherwise>
207      </xsl:choose>
208    </xsl:template>
209    
210    <xsl:template name="maintainer-email">
211      <xsl:param name="email" />
212      <a class="email" href="mailto:{$email}">
213        <img alt="[email]" src="../common/email.png" title="email" />
214      </a>
215    </xsl:template>
216    
217    <xsl:variable name="static">
218      <xsl:if test="$hasnews">
219        <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
220          <xsl:call-template name="outputitem"/>
221        </xsl:for-each>
222      </xsl:if>
223    </xsl:variable>
224    
225    <xsl:variable name="news">
226      <xsl:if test="$hasnews">
227        <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
228          <xsl:call-template name="outputitem"/>
229        </xsl:for-each>
230      </xsl:if>
231    </xsl:variable>
232    
233  <!-- All the work is done in a single template -->  <!-- All the work is done in a single template -->
234  <xsl:template match="source">  <xsl:template match="source">
235    
236    <!-- Start of html -->    <!-- Start of html -->
237    <xsl:text disable-output-escaping="yes">    <xsl:text disable-output-escaping="yes">
238    &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;    &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;
239    </xsl:text>    </xsl:text>
240    <html>    <html>
241    <head>    <head>
242    <meta name="ROBOTS" content="NOFOLLOW"/>    <meta name="ROBOTS" content="NOFOLLOW"/>
243    <link title="Default" rel="stylesheet" href="../common/pts.css"/>    <link type="text/css" title="Default" rel="stylesheet" href="../common/pts.css"/>
244    <link title="Standard link rendering" rel="alternate stylesheet" href="../common/pts2.css"/>    <link type="text/css" title="Standard link rendering" rel="alternate stylesheet" href="../common/pts2.css"/>
245      <link type="text/css" title="Compact rendering" rel="alternate stylesheet" href="../common/compact.css"/>
246      <xsl:if test="count($news)>0 and string($news)!=''">
247        <link rel="alternate" type="application/rss+xml" title="RSS"
248          href="{$package}/news.rss20.xml" />
249      </xsl:if>
250    <title>Overview of <xsl:value-of select="$package"/> source package</title>    <title>Overview of <xsl:value-of select="$package"/> source package</title>
251    </head>    </head>
252    <body>    <body>
# Line 122  Line 266 
266    </xsl:element>    </xsl:element>
267    source package</h1>    source package</h1>
268    
269      <div id="body">
270      <xsl:choose>
271      <xsl:when test="$removed='yes'">
272      <!-- REMOVED PACKAGE -->
273      <p>This package is not part of any Debian distribution. Thus you won't
274      find much information here. The package is either very new and hasn't
275      appeared on mirrors yet, or it's an old package that eventually got removed.
276      The old news are kept for historic purpose only.</p>
277    
278      <table class="righttable">
279        <xsl:call-template name="output-static">
280          <xsl:with-param name="static" select="$static" />
281        </xsl:call-template>
282        <xsl:call-template name="output-news">
283          <xsl:with-param name="news" select="$news" />
284        </xsl:call-template>
285      </table>
286    
287      <!-- END REMOVED PACKAGE -->
288      </xsl:when>
289      <xsl:otherwise>
290      <!-- NON REMOVED PACKAGE -->
291    
292    <table class="containertable">    <table class="containertable">
293    <tr class="containerrow" valign="top">    <tr class="containerrow" valign="top">
294    <td class="containercell">    <td class="containercell">
# Line 129  Line 296 
296    <table class="lefttable">    <table class="lefttable">
297    <tr class="titlerow">    <tr class="titlerow">
298    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
299    General Information    General information
300    </td></tr>    </td></tr>
301    <tr class="normalrow">    <tr class="normalrow">
302    <td class="labelcell">Last version</td>    <td class="labelcell">Latest version</td>
303    <td class="contentcell"><xsl:value-of select="version"/></td>    <td class="contentcell"><xsl:value-of select="version"/></td>
304    </tr>    </tr>
305    <xsl:if test="@release!='unstable'">    <xsl:if test="@release!='unstable'">
# Line 153  Line 320 
320      </xsl:attribute>      </xsl:attribute>
321      <xsl:value-of select="maintainer/name"/>      <xsl:value-of select="maintainer/name"/>
322    </xsl:element>    </xsl:element>
323    [<a class="email" href="mailto:{maintainer/email}">mail</a>]    <xsl:text> </xsl:text>
324      <xsl:call-template name="maintainer-email">
325        <xsl:with-param name="email" select="maintainer/email" />
326      </xsl:call-template>
327    </td>    </td>
328    </tr>    </tr>
329    <tr class="normalrow">    <tr class="normalrow">
# Line 161  Line 331 
331    <td class="contentcell">    <td class="contentcell">
332    <xsl:if test="uploaders">    <xsl:if test="uploaders">
333      <xsl:for-each select="uploaders/item">      <xsl:for-each select="uploaders/item">
334        <a class="email" href="http://qa.debian.org/developer.php?login={email}"><xsl:value-of select="name"/></a> [<a class="email" href="mailto:{email}">mail</a>]<br/>        <xsl:element name="a">
335            <xsl:attribute name="href">
336              <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
337              <xsl:call-template name="escape-name">
338                <xsl:with-param name="text"><xsl:value-of select="email"/></xsl:with-param>
339              </xsl:call-template>
340            </xsl:attribute>
341            <xsl:value-of select="name"/>
342          </xsl:element>
343          <xsl:text> </xsl:text>
344          <xsl:call-template name="maintainer-email">
345            <xsl:with-param name="email" select="email" />
346          </xsl:call-template>
347          <br />
348      </xsl:for-each>      </xsl:for-each>
349    </xsl:if>    </xsl:if>
350    <xsl:if test="not(uploaders)">    <xsl:if test="not(uploaders)">
351      <a class="none" title="You should find some co-maintainers ..." name="fake">None</a>      <a class="none" title="You should find some co-maintainers ..." name="fake">None</a>
352    </xsl:if>    </xsl:if>
353      <xsl:call-template name='add-maintenance-info' />
354    </td></tr>    </td></tr>
355    <tr class="normalrow">    <tr class="normalrow">
356    <td class="labelcell">Standards-Version</td>    <td class="labelcell">Standards-Version</td>
# Line 176  Line 360 
360    <td class="labelcell">Priority &amp; Section</td>    <td class="labelcell">Priority &amp; Section</td>
361    <td class="contentcell"><xsl:value-of select="priority"/> - <xsl:value-of select="section"/></td>    <td class="contentcell"><xsl:value-of select="priority"/> - <xsl:value-of select="section"/></td>
362    </tr>    </tr>
363      <xsl:call-template name='add-vcs-info' />
364    <xsl:if test="architecture!='any' and architecture!='all'">    <xsl:if test="architecture!='any' and architecture!='all'">
365    <tr class="normalrow">    <tr class="normalrow">
366    <td class="labelcell">Architecture</td>    <td class="labelcell">Architecture</td>
# Line 185  Line 370 
370    
371    <tr class="titlerow">    <tr class="titlerow">
372    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
373    Bugs Count    Bugs count
374    </td></tr>    </td></tr>
375    <tr class="normalrow">    <tr class="normalrow" id="bugs_all">
376    <td class="labelcell">All bugs</td>    <td class="labelcell">All bugs</td>
377    <td class="contentcell">    <td class="contentcell">
378    <xsl:element name="a">    <xsl:element name="a">
# Line 203  Line 388 
388    </xsl:element>    </xsl:element>
389    </td>    </td>
390    </tr>    </tr>
391    <tr class="normalrow">    <tr class="normalrow" id="bugs_rc">
392    <td class="labelcell">Release Critical</td>    <td class="labelcell"><span class="indented"><acronym title="Release Critical">RC</acronym> bugs</span></td>
393    <td class="contentcell">    <td class="contentcell">
394    <xsl:element name="a">    <xsl:element name="a">
395      <xsl:attribute name="href">      <xsl:attribute name="href">
# Line 220  Line 405 
405    </xsl:element>    </xsl:element>
406    </td>    </td>
407    </tr>    </tr>
408    <tr class="normalrow">    <tr class="normalrow" id="bugs_in">
409    <td class="labelcell">Important and Normal</td>    <td class="labelcell"><span class="indented"><acronym title="Important and Normal">I&amp;N bugs</acronym></span></td>
410    <td class="contentcell">    <td class="contentcell">
411    <xsl:element name="a">    <xsl:element name="a">
412      <xsl:attribute name="href">      <xsl:attribute name="href">
# Line 237  Line 422 
422    </xsl:element>    </xsl:element>
423    </td>    </td>
424    </tr>    </tr>
425    <tr class="normalrow">    <tr class="normalrow" id="bugs_mw">
426    <td class="labelcell">Minor and Wishlist</td>    <td class="labelcell"><span class="indented"><acronym title="Minor and Wishlist">M&amp;W bugs</acronym></span></td>
427    <td class="contentcell">    <td class="contentcell">
428    <xsl:element name="a">    <xsl:element name="a">
429      <xsl:attribute name="href">      <xsl:attribute name="href">
# Line 254  Line 439 
439    </xsl:element>    </xsl:element>
440    </td>    </td>
441    </tr>    </tr>
442    <tr class="normalrow">    <tr class="normalrow" id="bugs_fp">
443    <td class="labelcell">Fixed and Pending</td>    <td class="labelcell"><span class="indented"><acronym title="Fixed and Pending">F&amp;P bugs</acronym></span></td>
444    <td class="contentcell">    <td class="contentcell">
445    <xsl:element name="a">    <xsl:element name="a">
446      <xsl:attribute name="href">      <xsl:attribute name="href">
# Line 274  Line 459 
459    
460    <tr class="titlerow">    <tr class="titlerow">
461    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
462    Subscription - <a class="titlelink" href="http://www.debian.org/doc/manuals/developers-reference/ch-resources.en.html#s-pkg-tracking-system">Package Tracking System</a>      <a class="titlelink" href="http://www.debian.org/doc/manuals/developers-reference/ch-resources.en.html#s-pkg-tracking-system"><acronym title="Package Tracking System">PTS</acronym></a> subscription
463    </td></tr>    </td></tr>
464    <tr class="normalrow">    <tr class="normalrow">
465    <td class="labelcell">Subscribers count</td>    <td class="labelcell">Subscribers count</td>
# Line 285  Line 470 
470    <tr class="normalrow">    <tr class="normalrow">
471    <td class="contentcell" colspan="2">    <td class="contentcell" colspan="2">
472    <form method="post" action="/cgi-bin/pts.cgi">    <form method="post" action="/cgi-bin/pts.cgi">
473        <p>
474      <input type="hidden" name="package" value="{$package}"/>      <input type="hidden" name="package" value="{$package}"/>
475      <select name="what">      <select name="what">
476        <option value="subscribe">Subscribe</option>        <option value="subscribe">Subscribe</option>
# Line 293  Line 479 
479      </select>      </select>
480      <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>      <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>
481      <input type="submit" name="submit" value="Send"/>      <input type="submit" name="submit" value="Send"/>
482        </p>
483    </form>    </form>
484    </td>    </td>
485    </tr>    </tr>
486    
487    <tr class="titlerow">    <tr class="titlerow">
488    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
489    Binary Package(s)    Binary package(s)
490    </td></tr>    </td></tr>
491    <tr class="normalrow">    <tr class="normalrow">
492    <td class="normalcell" colspan="2" style="text-align: left">    <td class="normalcell" colspan="2" style="text-align: left">
# Line 307  Line 494 
494    <xsl:for-each select="binary/item">    <xsl:for-each select="binary/item">
495      <xsl:sort select="text()"/>      <xsl:sort select="text()"/>
496      <xsl:variable name="pkg" select="text()"/>      <xsl:variable name="pkg" select="text()"/>
497      <li>      <li class="binpkg">
498      <a href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>      <a class="binpkg" href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>
499      <span style="font-size: 70%">      <span style="font-size: 70%">
500      (<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>:
501    
# Line 372  Line 559 
559    <!-- oldstable -->    <!-- oldstable -->
560    <xsl:if test="$hasoldstable">    <xsl:if test="$hasoldstable">
561    <tr class="normalrow">    <tr class="normalrow">
562    <td class="labelcell"><a href="http://www.debian.org/releases/woody/">Oldstable</a></td>    <td class="labelcell"><a href="http://www.debian.org/releases/sarge/">Oldstable</a></td>
563    <td class="contentcell">    <td class="contentcell">
564    <xsl:value-of select="document(concat('../base/', $dir, '/oldstable.xml'))/source/version"/>    <xsl:value-of select="document(concat('../base/', $dir, '/oldstable.xml'))/source/version"/>
565    </td>    </td>
# Line 495  Line 682 
682      </xsl:for-each>      </xsl:for-each>
683      <xsl:if test="$other/bugs/@patch!='0'">      <xsl:if test="$other/bugs/@patch!='0'">
684        <li>        <li>
685          <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&amp;include=patch&amp;exclude=pending">Patches from BTS (<xsl:value-of select="$other/bugs/@patch"/>)</a>          <xsl:element name="a">
686              <xsl:attribute name="href">
687                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
688                <xsl:call-template name="escape-name">
689                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
690                </xsl:call-template>
691                <xsl:text>&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done</xsl:text>
692              </xsl:attribute>
693              Patches from BTS (<xsl:value-of select="$other/bugs/@patch"/>)
694            </xsl:element>
695        </li>        </li>
696      </xsl:if>      </xsl:if>
697      </ul>      </ul>
# Line 516  Line 712 
712        <xsl:attribute name="href">        <xsl:attribute name="href">
713          <xsl:text>http://packages.debian.org/changelogs/</xsl:text>          <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
714          <xsl:value-of select="directory"/>          <xsl:value-of select="directory"/>
715          <xsl:text>/</xsl:text>          <xsl:text>/current/changelog</xsl:text>
         <xsl:call-template name="escape-name">  
           <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
         </xsl:call-template>  
         <xsl:text>_</xsl:text>  
         <xsl:call-template name="escape-name">  
           <xsl:with-param name="text">  
             <xsl:call-template name="strip-epoch">  
               <xsl:with-param name="version">  
                 <xsl:value-of select="version"/>  
               </xsl:with-param>  
             </xsl:call-template>  
           </xsl:with-param>  
         </xsl:call-template>  
         <xsl:text>/changelog</xsl:text>  
716        </xsl:attribute>        </xsl:attribute>
717        <xsl:text>Changelog</xsl:text>        <xsl:text>Changelog</xsl:text>
718      </xsl:element>      </xsl:element>
# Line 539  Line 721 
721        <xsl:attribute name="href">        <xsl:attribute name="href">
722          <xsl:text>http://packages.debian.org/changelogs/</xsl:text>          <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
723          <xsl:value-of select="directory"/>          <xsl:value-of select="directory"/>
724          <xsl:text>/</xsl:text>          <xsl:text>/current/copyright</xsl:text>
         <xsl:call-template name="escape-name">  
           <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
         </xsl:call-template>  
         <xsl:text>_</xsl:text>  
         <xsl:call-template name="escape-name">  
           <xsl:with-param name="text">  
             <xsl:call-template name="strip-epoch">  
               <xsl:with-param name="version">  
                 <xsl:value-of select="version"/>  
               </xsl:with-param>  
             </xsl:call-template>  
           </xsl:with-param>  
         </xsl:call-template>  
         <xsl:text>/</xsl:text>  
         <xsl:call-template name="escape-name">  
                 <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
         </xsl:call-template>  
         <xsl:text>.copyright</xsl:text>  
725        </xsl:attribute>        </xsl:attribute>
726        <xsl:text>Copyright</xsl:text>        <xsl:text>Copyright</xsl:text>
727      </xsl:element>      </xsl:element>
# Line 566  Line 730 
730      <li>      <li>
731        <xsl:element name="a">        <xsl:element name="a">
732          <xsl:attribute name="href">          <xsl:attribute name="href">
733            <xsl:text>http://buildd.debian.org/build.php?pkg=</xsl:text>            <xsl:text>http://buildd.debian.org/pkg.cgi?pkg=</xsl:text>
734            <xsl:call-template name="escape-name">            <xsl:call-template name="escape-name">
735              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
736            </xsl:call-template>            </xsl:call-template>
737          </xsl:attribute>          </xsl:attribute>
738          <xsl:text>Buildd logs</xsl:text>          <xsl:text>Buildd logs</xsl:text>
739        </xsl:element>        </xsl:element>
740          <xsl:text> (</xsl:text>
741          <xsl:element name="a">
742            <xsl:attribute name="href">
743              <xsl:text>http://experimental.debian.net/build.php?pkg=</xsl:text>
744              <xsl:call-template name="escape-name">
745                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
746              </xsl:call-template>
747            </xsl:attribute>
748            <xsl:text>more</xsl:text>
749          </xsl:element>
750          <xsl:text>)</xsl:text>
751      </li>      </li>
752    </xsl:if>    </xsl:if>
753    <!-- DISABLED until ddtp.debian.org is back up    <!-- DISABLED until ddtp.debian.org is back up
# Line 602  Line 777 
777      </li>      </li>
778    </xsl:if>    </xsl:if>
779    -->    -->
780    <xsl:if test="$hasunstable and $other/debcheck/@unstable='yes'">    <xsl:if test="($hasunstable and $other/debcheck/@unstable='yes')
781          or ($hastesting and $other/debcheck/@testing='yes')
782          or ($hasstable and $other/debcheck/@stable='yes')">
783      <li>      <li>
784        <xsl:element name="a">        Debcheck on:
785          <xsl:attribute name="href">        <xsl:if test="$hasunstable">
786            <xsl:text>http://qa.debian.org/debcheck.php?dist=unstable&amp;package=</xsl:text>          <xsl:text> </xsl:text>
787            <xsl:call-template name="escape-name">          <xsl:element name="a">
788              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>            <xsl:attribute name="href">
789            </xsl:call-template>              <xsl:text>http://qa.debian.org/debcheck.php?dist=unstable&amp;package=</xsl:text>
790          </xsl:attribute>              <xsl:call-template name="escape-name">
791          <xsl:text>Debcheck on unstable</xsl:text>                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
792        </xsl:element>              </xsl:call-template>
793      </li>            </xsl:attribute>
794    </xsl:if>            <xsl:text>unstable</xsl:text>
795    <xsl:if test="$hastesting and $other/debcheck/@testing='yes'">          </xsl:element>
796      <li>        </xsl:if>
797        <xsl:element name="a">        <xsl:if test="$hastesting">
798          <xsl:attribute name="href">          <xsl:text> </xsl:text>
799            <xsl:text>http://qa.debian.org/debcheck.php?dist=testing&amp;package=</xsl:text>          <xsl:element name="a">
800            <xsl:call-template name="escape-name">            <xsl:attribute name="href">
801              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>              <xsl:text>http://qa.debian.org/debcheck.php?dist=testing&amp;package=</xsl:text>
802            </xsl:call-template>              <xsl:call-template name="escape-name">
803          </xsl:attribute>                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
804          <xsl:text>Debcheck on testing</xsl:text>              </xsl:call-template>
805        </xsl:element>            </xsl:attribute>
806      </li>            <xsl:text>testing</xsl:text>
807    </xsl:if>          </xsl:element>
808    <xsl:if test="$hasstable and $other/debcheck/@stable='yes'">        </xsl:if>
809      <li>        <xsl:if test="$hasstable">
810        <xsl:element name="a">          <xsl:element name="a">
811          <xsl:attribute name="href">            <xsl:attribute name="href">
812            <xsl:text>http://qa.debian.org/debcheck.php?dist=stable&amp;package=</xsl:text>              <xsl:text>http://qa.debian.org/debcheck.php?dist=stable&amp;package=</xsl:text>
813            <xsl:call-template name="escape-name">              <xsl:call-template name="escape-name">
814              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
815            </xsl:call-template>              </xsl:call-template>
816          </xsl:attribute>            </xsl:attribute>
817          <xsl:text>Debcheck on stable</xsl:text>            <xsl:text>stable</xsl:text>
818        </xsl:element>          </xsl:element>
819          </xsl:if>
820      </li>      </li>
821    </xsl:if>    </xsl:if>
822    <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->    <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->
823                                <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-/()&#34; ', &quot;'&quot;)"/>                                <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-~/()&#34; ', &quot;'&quot;)"/>
824    <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '____________________')"/>    <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '_____________________')"/>
825      <li><a href="http://lintian.debian.org/reports/m{$_name}.html#{$package}">Lintian report</a></li>      <li><a href="http://lintian.debian.org/reports/m{$_name}.html#{$package}">Lintian report</a></li>
826    <li>    <li>
827      <xsl:element name="a">      <xsl:element name="a">
# Line 656  Line 834 
834        <xsl:text>Popcon stats</xsl:text>        <xsl:text>Popcon stats</xsl:text>
835      </xsl:element>      </xsl:element>
836    </li>    </li>
837      <li>
838        <xsl:element name="a">
839          <xsl:attribute name="href">
840            <xsl:text>http://svnbuildstat.debian.net/packages/info/</xsl:text>
841            <xsl:call-template name="escape-name">
842              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
843            </xsl:call-template>
844          </xsl:attribute>
845          <xsl:text>Svnbuildstat</xsl:text>
846        </xsl:element>
847      </li>
848    </ul>    </ul>
849    </td>    </td>
850    </tr>    </tr>
851    
852    <tr class="titlerow">    <tr class="titlerow">
853    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
854    <xsl:element name="a">    Package files
     <xsl:attribute name="class">  
       <xsl:text>titlelink</xsl:text>  
     </xsl:attribute>  
     <xsl:attribute name="href">  
       <xsl:call-template name="mirror"/>  
       <xsl:text>/</xsl:text>  
       <xsl:value-of select="directory"/>  
       <xsl:text>/</xsl:text>  
     </xsl:attribute>  
     <xsl:text>Source files</xsl:text>  
   </xsl:element>  
855    </td></tr>    </td></tr>
856    <tr class="normalrow">    <tr class="titlerow">
857    <td class="normalcell" colspan="2" style="text-align: left">    <td class="labelcell">
   <ul>  
   <xsl:for-each select="files/item">  
     <li>  
858      <xsl:element name="a">      <xsl:element name="a">
       <xsl:attribute name="class">srcfile</xsl:attribute>  
859        <xsl:attribute name="href">        <xsl:attribute name="href">
860          <xsl:call-template name="mirror"/>          <xsl:call-template name="mirror"/>
861          <xsl:text>/</xsl:text>          <xsl:text>/</xsl:text>
862          <xsl:value-of select="../../directory"/>          <xsl:value-of select="directory"/>
863          <xsl:text>/</xsl:text>          <xsl:text>/</xsl:text>
         <xsl:value-of select="filename"/>  
       </xsl:attribute>  
       <xsl:attribute name="title">  
         <xsl:value-of select="size"/>  
         <xsl:text> bytes</xsl:text>  
864        </xsl:attribute>        </xsl:attribute>
865        <xsl:value-of select="filename"/>        <xsl:text>Source files</xsl:text>
866      </xsl:element>      </xsl:element>
867      </li>    </td>
868    </xsl:for-each>    <td class="contentcell" id="src_files">
869    </ul></td></tr>      <ul>
870        <xsl:for-each select="files/item">
871          <xsl:variable name="filetype">
872            <xsl:call-template name="categorize-srcfile" />
873          </xsl:variable>
874          <xsl:element name="li">
875            <xsl:attribute name="class">srcfile</xsl:attribute>
876            <xsl:if test="string($filetype)!=''">
877              <xsl:attribute name="id">
878                <xsl:text>srcfile_</xsl:text>
879                <xsl:value-of select="$filetype" />
880              </xsl:attribute>
881            </xsl:if>
882            <xsl:element name="a">
883              <xsl:attribute name="class">srcfile</xsl:attribute>
884              <xsl:attribute name="href">
885                <xsl:call-template name="mirror"/>
886                <xsl:text>/</xsl:text>
887                <xsl:value-of select="../../directory"/>
888                <xsl:text>/</xsl:text>
889                <xsl:value-of select="filename"/>
890              </xsl:attribute>
891              <xsl:attribute name="title">
892                <xsl:value-of select="filename" />
893                <xsl:text>: </xsl:text>
894                <xsl:value-of select="size"/>
895                <xsl:text> bytes</xsl:text>
896              </xsl:attribute>
897              <xsl:text>.</xsl:text>
898              <xsl:value-of select="$filetype"/>
899            </xsl:element>
900          </xsl:element>
901        </xsl:for-each>
902        </ul>
903      </td>
904      </tr>
905    
906    </table>    </table>
907    <!-- END LEFT SIDE -->    <!-- END LEFT SIDE -->
# Line 730  Line 934 
934             (<xsl:value-of select="$other/watch/@new"/>). <a href="{$other/watch/@url}"><xsl:value-of select="$other/watch/@url"/></a></li>             (<xsl:value-of select="$other/watch/@new"/>). <a href="{$other/watch/@url}"><xsl:value-of select="$other/watch/@url"/></a></li>
935        </xsl:if>        </xsl:if>
936        <xsl:if test="$other/bugs/@patch!='0'">        <xsl:if test="$other/bugs/@patch!='0'">
937          <li>The Bug Tracking System contains <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&amp;include=patch&amp;exclude=pending"><xsl:value-of select="$other/bugs/@patch"/> patch(es)</a>, you should include it(them).</li>          <li>The Bug Tracking System contains
938            <xsl:element name="a">
939              <xsl:attribute name="href">
940                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
941                <xsl:call-template name="escape-name">
942                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
943                </xsl:call-template>
944                <xsl:text>&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done</xsl:text>
945              </xsl:attribute>
946              <xsl:value-of select="$other/bugs/@patch"/> patch<xsl:if test="$other/bugs/@patch!='1'">es</xsl:if>
947            </xsl:element>, you should include
948            <xsl:if test="$other/bugs/@patch!='1'">them</xsl:if>
949            <xsl:if test="$other/bugs/@patch='1'">it</xsl:if>.
950            </li>
951        </xsl:if>        </xsl:if>
952      </xsl:if>      </xsl:if>
953    </xsl:variable>    </xsl:variable>
954    <xsl:if test="count($todo)>0 and string($todo)!=''">    <xsl:if test="count($todo)>0 and string($todo)!=''">
955    <tr class="titlerow">    <tr class="titlerow">
956    <td class="titlecell" style="background-color: blue">    <td class="titlecell" id="todo">
957    Todo    Todo
958    </td></tr>    </td></tr>
959    <tr class="normalrow">    <tr class="normalrow">
# Line 772  Line 989 
989        and your package only follows        and your package only follows
990        <xsl:value-of select="standards-version"/>...</li>        <xsl:value-of select="standards-version"/>...</li>
991      </xsl:if>      </xsl:if>
992        <xsl:if test="@release!='unstable' and @release!='experimental'">
993          <li>This package is neither part of unstable nor experimental. This
994          probably means that the package <a
995          href="http://ftp-master.debian.org/removals.txt">has been removed</a> (or
996          has been renamed). Thus the information here is of little interest ...
997          the package is going to disappear unless someone takes it over and
998          reintroduces it into unstable.</li>
999        </xsl:if>
1000      <xsl:if test="$hasother">      <xsl:if test="$hasother">
1001    
1002        <!-- Override disparity handling. [JvW] -->        <!-- Override disparity handling. [JvW] -->
# Line 793  Line 1018 
1018        <li>        <li>
1019          <xsl:choose>          <xsl:choose>
1020            <xsl:when test="$other/wnpp/@type='O'">            <xsl:when test="$other/wnpp/@type='O'">
1021              <xsl:choose>
1022              <xsl:when test="@release!='unstable' and @release!='experimental'">
1023              The WNPP database contains an O (Orphaned) entry for
1024              this package. This is probably an error, as it is neither part of
1025              unstable nor experimental.
1026              </xsl:when>
1027              <xsl:otherwise>
1028            <span style="font-weight: bold">This package has been orphaned</span>.            <span style="font-weight: bold">This package has been orphaned</span>.
1029            This means that it does not have a real maintainer at the            This means that it does not have a real maintainer at the
1030            moment. Please consider adopting this package if you are interested in it.            moment. Please consider adopting this package if you are interested in it.
1031              </xsl:otherwise>
1032              </xsl:choose>
1033            </xsl:when>            </xsl:when>
1034            <xsl:when test="$other/wnpp/@type='ITA'">            <xsl:when test="$other/wnpp/@type='ITA'">
1035              <xsl:choose>
1036              <xsl:when test="@release!='unstable' and @release!='experimental'">
1037              The WNPP database contains an ITA (Intent To Adopt) entry for
1038              this package. This is probably an error, as it is neither part of
1039              unstable nor experimental.
1040              </xsl:when>
1041              <xsl:otherwise>
1042            This package has been orphaned, but someone intends to maintain it.            This package has been orphaned, but someone intends to maintain it.
1043              </xsl:otherwise>
1044              </xsl:choose>
1045            </xsl:when>            </xsl:when>
1046            <xsl:when test="$other/wnpp/@type='RFA'">            <xsl:when test="$other/wnpp/@type='RFA'">
1047              <xsl:choose>
1048              <xsl:when test="@release!='unstable' and @release!='experimental'">
1049              The WNPP database contains an RFA (Request For Adoption) entry for
1050              this package. This is probably an error, as it is neither part of
1051              unstable nor experimental.
1052              </xsl:when>
1053              <xsl:otherwise>
1054            The current maintainer is looking for someone who can take over            The current maintainer is looking for someone who can take over
1055            maintenance of this package. If you are interested in this package,            maintenance of this package. If you are interested in this package,
1056            please consider taking it over. Alternatively you may            please consider taking it over. Alternatively you may
1057            want to be co-maintainer in order to help the actual maintainer.            want to be co-maintainer in order to help the actual maintainer.
1058              </xsl:otherwise>
1059              </xsl:choose>
1060            </xsl:when>            </xsl:when>
1061            <xsl:when test="$other/wnpp/@type='RFH'">            <xsl:when test="$other/wnpp/@type='RFH'">
1062              <xsl:choose>
1063              <xsl:when test="@release!='unstable' and @release!='experimental'">
1064              The WNPP database contains an RFH (Request For Help) entry for
1065              this package. This is probably an error, as it is neither part of
1066              unstable nor experimental.
1067              </xsl:when>
1068              <xsl:otherwise>
1069            The current maintainer is looking for someone who can help with the            The current maintainer is looking for someone who can help with the
1070            maintenance of this package. If you are interested in this package,            maintenance of this package. If you are interested in this package,
1071            please consider helping out. One way you can help is offer to be a            please consider helping out. One way you can help is offer to be a
1072            co-maintainer or triage bugs in the bts.            co-maintainer or triage bugs in the bts.
1073              </xsl:otherwise>
1074              </xsl:choose>
1075            </xsl:when>            </xsl:when>
1076            <xsl:when test="$other/wnpp/@type='ITP'">            <xsl:when test="$other/wnpp/@type='ITP'">
1077              <xsl:choose>
1078              <xsl:when test="@release!='unstable' and @release!='experimental'">
1079              The WNPP database contains an ITP (Intent To Package). This probably
1080              means that somebody is going to reintroduce this package into unstable.
1081              </xsl:when>
1082              <xsl:otherwise>
1083            The WNPP database contains an ITP (Intent To Package) entry for            The WNPP database contains an ITP (Intent To Package) entry for
1084            this package. This is probably an error, as it has already been            this package. This is probably an error, as it has already been
1085            packaged.            packaged.
1086              </xsl:otherwise>
1087              </xsl:choose>
1088            </xsl:when>            </xsl:when>
1089            <xsl:when test="$other/wnpp/@type='RFP'">            <xsl:when test="$other/wnpp/@type='RFP'">
1090              <xsl:choose>
1091              <xsl:when test="@release!='unstable' and @release!='experimental'">
1092              The WNPP database contains an RFP (Request For Package). This probably
1093              means that somebody would like to see this package reintroduced into
1094              unstable by a volunteer.
1095              </xsl:when>
1096              <xsl:otherwise>
1097            The WNPP database contains an RFP (Request For Package) entry            The WNPP database contains an RFP (Request For Package) entry
1098            for this package.  This is probably an error, as it has already            for this package.  This is probably an error, as it has already
1099            been packaged.            been packaged.
1100              </xsl:otherwise>
1101              </xsl:choose>
1102            </xsl:when>            </xsl:when>
1103            <xsl:when test="$other/wnpp/@type='RM'">            <xsl:when test="$other/wnpp/@type='RM'">
1104            <span style="font-weight: bold">This package has been requested to be            <span style="font-weight: bold">This package has been requested to be
# Line 858  Line 1136 
1136    </xsl:variable>    </xsl:variable>
1137    <xsl:if test="count($problems)>0 and string($problems)!=''">    <xsl:if test="count($problems)>0 and string($problems)!=''">
1138    <tr class="titlerow">    <tr class="titlerow">
1139    <td class="titlecell" style="background-color: red">    <td class="titlecell" id="problems">
1140    Problems    Problems
1141    </td></tr>    </td></tr>
1142    <tr class="normalrow">    <tr class="normalrow">
# Line 883  Line 1161 
1161    </td>    </td>
1162    </tr>    </tr>
1163    </xsl:if>    </xsl:if>
   
   
   <xsl:variable name="static">  
     <xsl:if test="$hasnews">  
       <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">  
         <xsl:call-template name="outputitem"/>  
       </xsl:for-each>  
     </xsl:if>  
   </xsl:variable>  
   <xsl:if test="count($static)>0 and string($static)!=''">  
     <tr class="titlerow">  
     <td class="titlecell">  
     Static Information  
     </td></tr>  
     <tr class="normalrow">  
     <td class="contentcell2">  
     <ul><xsl:copy-of select="$static"/></ul>  
     </td>  
     </tr>  
   </xsl:if>  
1164    
1165    <xsl:variable name="news">    <xsl:call-template name="output-static">
1166      <xsl:if test="$hasnews">      <xsl:with-param name="static" select="$static" />
1167        <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">    </xsl:call-template>
1168          <xsl:call-template name="outputitem"/>    <xsl:call-template name="output-news">
1169        </xsl:for-each>      <xsl:with-param name="news" select="$news" />
1170      </xsl:if>    </xsl:call-template>
   </xsl:variable>  
   <xsl:if test="count($news)>0 and string($news)!=''">  
     <tr class="titlerow">  
     <td class="titlecell">  
     Latest News  
     </td></tr>  
     <tr class="normalrow">  
     <td class="contentcell2">  
     <ul><xsl:copy-of select="$news"/></ul>  
     </td>  
     </tr>  
   </xsl:if>  
1171    
1172    </table>    </table>
1173    <!-- END RIGHT SIDE -->    <!-- END RIGHT SIDE -->
1174    </td></tr>    </td></tr>
1175    </table>    </table>
1176    
1177      <!-- END NON REMOVED PACKAGE -->
1178      </xsl:otherwise>
1179      </xsl:choose>
1180    
1181    <hr/>    <hr/>
1182    Debian Package Tracking System - Copyright 2002-2005 Raphaël Hertzog<br/>    <p>
1183      Debian Package Tracking System - Copyright 2002-2006 Raphaël Hertzog and
1184      others<br/>
1185    Report problems to the <a href="http://bugs.debian.org/qa.debian.org"    Report problems to the <a href="http://bugs.debian.org/qa.debian.org"
1186    >qa.debian.org pseudopackage</a><br/>    >qa.debian.org pseudopackage</a><br/>
1187    Last modified : <xsl:value-of select="$date"/>    Last modified : <xsl:value-of select="$date"/>
1188      </p>
1189      </div>
1190    </body>    </body>
1191    </html>    </html>
1192  </xsl:template>  </xsl:template>

Legend:
Removed from v.1090  
changed lines
  Added in v.1766

  ViewVC Help
Powered by ViewVC 1.1.5