/[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 2058 by zack, Sat Nov 29 15:20:51 2008 UTC revision 2483 by myon, Wed Feb 16 15:17:20 2011 UTC
# Line 1  Line 1 
1  <?xml version="1.0" encoding="utf-8" ?>  <?xml version="1.0" encoding="utf-8" ?>
2    
3  <!--  <!--
4  # Copyright 2002-2008 Raphaël Hertzog and others  # Copyright © 2002-2008 Raphaël Hertzog and others
5  # Copyright 2007-2008 Stefano Zacchiroli  # Copyright © 2007-2009 Stefano Zacchiroli
6  # This file is distributed under the terms of the General Public License  # This file is distributed under the terms of the General Public License
7  # version 2 or (at your option) any later version.  # version 2 or (at your option) any later version.
8  -->  -->
# Line 37  Line 37 
37  <xsl:param name="hassecurity-oldstable" select="''"/>  <xsl:param name="hassecurity-oldstable" select="''"/>
38  <xsl:param name="hassecurity-stable" select="''"/>  <xsl:param name="hassecurity-stable" select="''"/>
39  <xsl:param name="hassecurity-testing" select="''"/>  <xsl:param name="hassecurity-testing" select="''"/>
 <xsl:param name="hassecure-testing" select="''"/>  
40  <xsl:param name="hasvolatile" select="''"/>  <xsl:param name="hasvolatile" select="''"/>
41  <xsl:param name="hasnews" select="''"/>  <xsl:param name="hasnews" select="''"/>
42  <xsl:param name="hasexcuse" select="''"/>  <xsl:param name="hasexcuse" select="''"/>
# Line 46  Line 45 
45    select="document(concat('../base/', $dir, '/other.xml'))/other"/>    select="document(concat('../base/', $dir, '/other.xml'))/other"/>
46  <xsl:variable name="low-nmu-emails"  <xsl:variable name="low-nmu-emails"
47    select="document('../base/low_threshold_nmu.emails.xml')/emails"/>    select="document('../base/low_threshold_nmu.emails.xml')/emails"/>
48    <xsl:variable name="mostrecentsuite">
49      <!-- name of the most recent suite in which the package is available
50      -->
51      <xsl:choose>
52        <xsl:when test="$hasexperimental">
53          <xsl:text>experimental</xsl:text>
54        </xsl:when>
55        <xsl:when test="$hasunstable">
56          <xsl:text>unstable</xsl:text>
57        </xsl:when>
58        <xsl:when test="$hastesting">
59          <xsl:text>testing</xsl:text>
60        </xsl:when>
61        <xsl:when test="$hasstable">
62          <xsl:text>stable</xsl:text>
63        </xsl:when>
64        <xsl:otherwise>
65          <xsl:text />
66        </xsl:otherwise>
67      </xsl:choose>
68    </xsl:variable>
69    <xsl:variable name="pooldir">
70      <xsl:if test="$mostrecentsuite != ''">
71        <xsl:value-of
72           select="document(concat('../base/', $dir, '/',
73                   $mostrecentsuite, '.xml'))/source/directory" />
74      </xsl:if>
75    </xsl:variable>
76    
77  <!-- Those variables controls the todo and problem item concerning  <!-- Those variables controls the todo and problem item concerning
78       standards-version not being up to date -->       standards-version not being up to date -->
79  <xsl:variable name="lastsv" select="'3.8.0'"/>  <xsl:variable name="lastsv" select="'3.9.1'"/>
80  <xsl:variable name="lastmajorsv" select="'3.'"/>  <xsl:variable name="lastmajorsv" select="'3.'"/>
81    
82  <!-- lintian summary -->  <!-- lintian summary -->
# Line 63  Line 90 
90    <xsl:variable name="lintian_pattern" select="concat('àáèéëêòöøîìùñ~/()&#34; ', &quot;'&quot;)"/>    <xsl:variable name="lintian_pattern" select="concat('àáèéëêòöøîìùñ~/()&#34; ', &quot;'&quot;)"/>
91    <xsl:variable name="lintian_email" select="translate(maintainer/email, $lintian_pattern, '_____________________')"/>    <xsl:variable name="lintian_email" select="translate(maintainer/email, $lintian_pattern, '_____________________')"/>
92    
93    <xsl:text>http://lintian.debian.org/reports/maintainer/</xsl:text>    <xsl:text>http://lintian.debian.org/maintainer/</xsl:text>
94    <xsl:value-of select="$lintian_email" />    <xsl:value-of select="$lintian_email" />
95    <xsl:text>.html#</xsl:text>    <xsl:text>.html#</xsl:text>
96    <xsl:value-of select="$package" />    <xsl:value-of select="$package" />
97  </xsl:template>  </xsl:template>
98    
99  <xsl:template name="mirror">  <xsl:variable name="mirror">http://cdn.debian.net/debian</xsl:variable>
   <xsl:text>http://ftp.debian.org/debian</xsl:text>  
 </xsl:template>  
100    
101  <xsl:template name="outputitem">  <xsl:template name="outputitem">
102    <xsl:choose>    <xsl:choose>
# Line 86  Line 111 
111          <xsl:value-of select="@from"/>          <xsl:value-of select="@from"/>
112          <xsl:text>)</xsl:text></xsl:if></li>          <xsl:text>)</xsl:text></xsl:if></li>
113      </xsl:when>      </xsl:when>
114        <xsl:when test="@type='raw'">
115          <li>
116            <xsl:copy-of select="node()" />
117          </li>
118        </xsl:when>
119      <xsl:otherwise>      <xsl:otherwise>
120        <li><xsl:if test="@date">        <li><xsl:if test="@date">
121          <xsl:text>[</xsl:text>          <xsl:text>[</xsl:text>
# Line 131  other-to-%xx, especially % to %25... For Line 161  other-to-%xx, especially % to %25... For
161    
162  <xsl:template name="add-vcs-info">  <xsl:template name="add-vcs-info">
163    <xsl:if test="repository">    <xsl:if test="repository">
164      <tr>      <dt title="Version Control System">VCS</dt>
165        <td class="labelcell">      <dd>
166          <acronym title="Version Control System">VCS</acronym>        <xsl:if test="repository/vcs[@kind!='browser']">
167        </td>          <xsl:for-each select="repository/vcs[@kind!='browser']">
168        <td class="contentcell">            <xsl:sort select="@kind" />
169          <xsl:if test="repository/vcs[@kind!='browser']">            <a title="raw {@kind} repository" href="{@url}">
170            <xsl:for-each select="repository/vcs[@kind!='browser']">              <xsl:value-of select="@kind" />
171              <xsl:sort select="@kind" />            </a>
172              <a title="access to the raw repository" href="{@url}">            <xsl:if test="position()!=last()"><xsl:text>, </xsl:text></xsl:if>
173                <xsl:value-of select="@kind" />          </xsl:for-each>
174              </a>        </xsl:if>
175              <xsl:if test="position()!=last()">        <xsl:if test="repository/vcs[@kind='browser']">
176                <xsl:text>, </xsl:text>          <xsl:text> (</xsl:text>
177              </xsl:if>          <a title="browse the repository"
178            </xsl:for-each>             href="{repository/vcs[@kind='browser']/@url}">browse</a>
         </xsl:if>  
         <xsl:if test="repository/vcs[@kind='browser']">  
           <xsl:text> (</xsl:text>  
           <a title="web-based repository browsing"  
             href="{repository/vcs[@kind='browser']/@url}">browse</a>  
179            <xsl:text>)</xsl:text>            <xsl:text>)</xsl:text>
180          </xsl:if>        </xsl:if>
181        </td>      </dd>
     </tr>  
182    </xsl:if>    </xsl:if>
183  </xsl:template>  </xsl:template>
184    
# Line 172  other-to-%xx, especially % to %25... For Line 196  other-to-%xx, especially % to %25... For
196    </xsl:variable>    </xsl:variable>
197    
198    <xsl:if test="string($dm)!='' or string($lownmu)!=''">    <xsl:if test="string($dm)!='' or string($lownmu)!=''">
199      <tr>      <div class="maint-markers">
200        <td class="labelcell">      <xsl:if test="string($dm)!=''">
201          <xsl:text>Maintenance</xsl:text>        <span class="dm-tag">
202        </td>          <a href="http://www.debian.org/vote/2007/vote_003">
203        <td class="contentcell">            <acronym title="Debian Maintainer Upload Allowed: this package can be uploaded by Debian Maintainers">DMUA</acronym>
204            </a>
205          <xsl:if test="string($dm)!=''">        </span>
206            <span class="dm-tag">      </xsl:if>
207              <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>      <xsl:if test="string($lownmu)!=''">
208            </span>        <xsl:if test="string($dm)!=''">
209            <xsl:text> </xsl:text>          <xsl:text>, </xsl:text>
210          </xsl:if>        </xsl:if>
211          <span class="lownmu-tag">
212          <xsl:if test="string($lownmu)!=''">          <a href="http://wiki.debian.org/LowThresholdNmu">
213            <span class="lownmu-tag">            <acronym title="maintainer agrees with Low Threshold NMU">LowNMU</acronym>
214              <a href="http://wiki.debian.org/LowThresholdNmu"><acronym          </a>
215                  title="maintainer agrees with Low Threshold NMU, see wiki page for details">LowNMU</acronym></a>        </span>
216            </span>      </xsl:if>
217            <xsl:text> </xsl:text>      </div>
         </xsl:if>  
       </td>  
     </tr>  
218    </xsl:if>    </xsl:if>
219  </xsl:template>  </xsl:template>
220    
# Line 201  other-to-%xx, especially % to %25... For Line 222  other-to-%xx, especially % to %25... For
222    <xsl:param name="news" />    <xsl:param name="news" />
223    
224    <xsl:if test="count($news)>0 and string($news)!=''">    <xsl:if test="count($news)>0 and string($news)!=''">
225      <tr class="titlerow">      <div class="block news">
226      <td class="titlecell">        <a name="news" />
227        Latest news <a class="feedlink" href="{$package}/news.rss20.xml">RSS</a>        <h2>news <a class="feedlink" href="{$package}/news.rss20.xml">RSS</a></h2>
228      </td></tr>        <ul id="news-list">
229      <tr class="normalrow">          <xsl:copy-of select="$news" />
230      <td class="contentcell2">        </ul>
231      <ul id="news-list"><xsl:copy-of select="$news"/></ul>      </div>
     </td>  
     </tr>  
232    </xsl:if>    </xsl:if>
233  </xsl:template>  </xsl:template>
234    
# Line 217  other-to-%xx, especially % to %25... For Line 236  other-to-%xx, especially % to %25... For
236    <xsl:param name="static" />    <xsl:param name="static" />
237    
238    <xsl:if test="count($static)>0 and string($static)!=''">    <xsl:if test="count($static)>0 and string($static)!=''">
239      <tr class="titlerow">      <div class="block static">
240      <td class="titlecell">        <a name="static" />
241      Static Information        <h2>static info</h2>
242      </td></tr>        <ul>
243      <tr class="normalrow">          <xsl:copy-of select="$static" />
244      <td class="contentcell2">        </ul>
245      <ul><xsl:copy-of select="$static"/></ul>      </div>
     </td>  
     </tr>  
246    </xsl:if>    </xsl:if>
247  </xsl:template>  </xsl:template>
248    
 <xsl:template name="categorize-srcfile">  
   <!-- used to recognize (and tag afterwards) well-known type of source package  
     components: dsc, diff, orig -->  
   <xsl:choose>  
     <xsl:when test="substring(filename,string-length(filename)-2, 3)='dsc'">  
       <xsl:text>dsc</xsl:text>  
     </xsl:when>  
     <xsl:when test="substring(filename,string-length(filename)-6, 7)='diff.gz'">  
       <xsl:text>diff</xsl:text>  
     </xsl:when>  
     <xsl:when test="substring(filename,string-length(filename)-5, 3)='tar'">  
       <xsl:text>orig</xsl:text>  
     </xsl:when>  
     <xsl:otherwise><xsl:text></xsl:text></xsl:otherwise>  
   </xsl:choose>  
 </xsl:template>  
   
249  <xsl:template name="maintainer-email">  <xsl:template name="maintainer-email">
250    <xsl:param name="email" />    <xsl:param name="email" />
251    <a class="email" href="mailto:{$email}">    <a class="email" href="mailto:{$email}">
# Line 254  other-to-%xx, especially % to %25... For Line 254  other-to-%xx, especially % to %25... For
254  </xsl:template>  </xsl:template>
255    
256  <xsl:template name="general-information">  <xsl:template name="general-information">
257    <tr class="titlerow">    <div class="block info">
258      <td class="titlecell" colspan="2">General information</td>      <a name="general" />
259    </tr>      <h2>general</h2>
260    <tr class="normalrow">      <dl>
261      <td class="labelcell">Latest version</td>        <dt>source</dt>
262      <td class="contentcell">        <dd>
263        <span id="latest_version"><xsl:value-of select="version"/></span>          <a href="http://packages.debian.org/src:{$package}">
264      </td>            <xsl:value-of select="$package" />
265    </tr>          </a>
266    <xsl:if test="@release!='unstable'">          (<span id="priority" title="priority">
267      <tr class="normalrow">            <small><xsl:value-of select="priority"/></small>
268        <td class="labelcell">Distribution</td>          </span>,
269        <td class="contentcell"><xsl:value-of select="@release"/></td>          <span id="section" title="section">
270      </tr>            <small><xsl:value-of select="section"/></small>
271    </xsl:if>          </span>)
272    <tr class="normalrow">        </dd>
273      <td class="labelcell">Maintainer</td>  
274      <td class="maintainer contentcell">        <dt>version</dt>
275        <xsl:element name="a">        <dd>
276          <xsl:attribute name="href">          <span id="latest_version"><xsl:value-of select="version"/></span>
277            <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>        </dd>
278            <xsl:call-template name="escape-name">  
279              <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>        <xsl:if test="@release!='unstable'">
280            </xsl:call-template>          <dt>distro</dt>
281          </xsl:attribute>          <dd><xsl:value-of select="@release"/></dd>
282          <span class="name"><xsl:value-of select="maintainer/name"/></span>        </xsl:if>
283        </xsl:element>  
284        <xsl:text> </xsl:text>        <dt title="Maintainer and Uploaders">maint</dt>
285        <xsl:call-template name="maintainer-email">        <dd class="maintainer">
286          <xsl:with-param name="email" select="maintainer/email" />          <xsl:element name="a">
287        </xsl:call-template>            <xsl:attribute name="href">
288      </td>              <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
289    </tr>              <xsl:call-template name="escape-name">
290    <xsl:if test="uploaders">                <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>
291      <tr class="normalrow">              </xsl:call-template>
292        <td class="labelcell"><a href="http://www.debian.org/doc/manuals/developers-reference/pkgs.html#collaborative-maint">Uploaders</a></td>            </xsl:attribute>
293        <td class="uploaders contentcell">            <span class="name" title="maintainer">
294          <xsl:for-each select="uploaders/item">              <xsl:value-of select="maintainer/name"/>
           <span class="uploader">  
             <xsl:element name="a">  
               <xsl:attribute name="href">  
                 <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>  
                 <xsl:call-template name="escape-name">  
                   <xsl:with-param name="text"><xsl:value-of select="email"/></xsl:with-param>  
                 </xsl:call-template>  
               </xsl:attribute>  
               <span class="name"><xsl:value-of select="name"/></span>  
             </xsl:element>  
             <xsl:text> </xsl:text>  
             <xsl:call-template name="maintainer-email">  
               <xsl:with-param name="email" select="email" />  
             </xsl:call-template>  
295            </span>            </span>
296            <br />          </xsl:element>
297          </xsl:for-each>          <xsl:if test="uploaders">
298      </td></tr>            <xsl:for-each select="uploaders/item">
299    </xsl:if>              <xsl:text>, </xsl:text>
300    <xsl:call-template name='add-maintenance-info'>              <span class="uploader">
301      <xsl:with-param name="email" select="maintainer/email" />                <small>
302    </xsl:call-template>                <xsl:element name="a">
303    <tr class="normalrow">                  <xsl:attribute name="href">
304      <xsl:variable name='stdver' select="standards-version" />                    <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
305      <td class="labelcell">Conforms to</td>                    <xsl:call-template name="escape-name">
306      <td class="contentcell">                      <xsl:with-param name="text">
307        <a title="Debian Policy Manual (version: {$stdver})"                        <xsl:value-of select="email"/>
308          href="http://www.debian.org/doc/debian-policy/">                      </xsl:with-param>
309          <xsl:value-of select="$stdver"/>                    </xsl:call-template>
310        </a>                  </xsl:attribute>
311      </td>                  <span class="name" title="uploader">
312    </tr>                    <xsl:value-of select="name"/>
313    <tr class="normalrow">                  </span>
314      <td class="labelcell">Priority</td>                </xsl:element>
315      <td class="contentcell"> <xsl:value-of select="priority"/> </td>                <xsl:text> (u)</xsl:text>
316    </tr>                </small>
317    <tr class="normalrow">              </span>
318      <td class="labelcell">Section</td>            </xsl:for-each>
319      <td class="contentcell"> <xsl:value-of select="section"/> </td>          </xsl:if>
320    </tr>          <xsl:call-template name='add-maintenance-info'>
321    <xsl:call-template name='add-vcs-info' />            <xsl:with-param name="email" select="maintainer/email" />
322    <xsl:if test="architecture!='any' and architecture!='all'">          </xsl:call-template>
323      <tr class="normalrow">        </dd>
324        <td class="labelcell">Architecture</td>  
325        <td class="contentcell"><xsl:value-of select="architecture"/></td>        <xsl:if test="architecture!='any' and architecture!='all'">
326      </tr>          <dt>arch</dt>
327    </xsl:if>          <dd><xsl:value-of select="architecture"/></dd>
328          </xsl:if>
329    
330          <dt title="Standards-Version">std-ver</dt>
331          <dd>
332            <span id="standards_version">
333              <xsl:value-of select="standards-version"/>
334            </span>
335          </dd>
336    
337          <xsl:call-template name='add-vcs-info' />
338        </dl>
339      </div>
340  </xsl:template>  </xsl:template>
341    
342  <xsl:template name="bugs-count">  <xsl:template name="bugs-count">
343    <tr class="titlerow">    <div class="block bugs">
344      <td class="titlecell" colspan="2">Bugs count</td>      <a name="bugs" />
345    </tr>      <h2>bugs</h2>
346    <tr class="normalrow" id="bugs_all">      <dl>
347      <td class="labelcell">All bugs        <dt id="bugs_all">
348         <xsl:element name="a">          all
349          <xsl:attribute name="href">          <xsl:element name="a">
           <xsl:text>http://people.debian.org/~glandium/bts/</xsl:text>  
           <xsl:value-of select="substring($package, 1, 1)"/>  
           <xsl:text>/</xsl:text>  
           <xsl:value-of select="$escaped-package" />  
           <xsl:text>.png</xsl:text>  
         </xsl:attribute>  
         <xsl:attribute name="style">font-weight: normal</xsl:attribute>  
         <xsl:text>(graph)</xsl:text>  
       </xsl:element>  
     </td>  
     <td class="contentcell">  
       <xsl:element name="a">  
         <xsl:attribute name="href">  
           <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=no&amp;src=</xsl:text>  
           <xsl:value-of select="$escaped-package" />  
         </xsl:attribute>  
         <xsl:if test="$hasother">  
           <xsl:value-of select="$other/bugs/@all"/>  
         </xsl:if>  
       </xsl:element>  
       <xsl:if test="$hasother and $other/bugs/@all_m">  
         (<xsl:element name="a">  
350            <xsl:attribute name="href">            <xsl:attribute name="href">
351              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=yes&amp;src=</xsl:text>              <xsl:text>http://people.debian.org/~glandium/bts/</xsl:text>
352                <xsl:value-of select="substring($package, 1, 1)"/>
353                <xsl:text>/</xsl:text>
354              <xsl:value-of select="$escaped-package" />              <xsl:value-of select="$escaped-package" />
355                <xsl:text>.png</xsl:text>
356            </xsl:attribute>            </xsl:attribute>
357            <xsl:value-of select="$other/bugs/@all_m"/>            <xsl:attribute name="title">bug history graph</xsl:attribute>
358          </xsl:element>)            <img alt="bug history graph" src="../common/bug-graph.png" />
359        </xsl:if>          </xsl:element>
360      </td>        </dt>
361    </tr>        <dd>
362    <tr class="normalrow" id="bugs_rc">          <xsl:element name="a">
     <td class="labelcell"><span class="indented"><acronym title="Release Critical">RC</acronym> bugs</span></td>  
     <td class="contentcell">  
       <xsl:element name="a">  
         <xsl:attribute name="href">  
           <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>  
           <xsl:value-of select="$escaped-package" />  
           <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&amp;repeatmerged=no</xsl:text>  
         </xsl:attribute>  
         <xsl:if test="$hasother">  
           <xsl:value-of select="$other/bugs/@rc"/>  
         </xsl:if>  
       </xsl:element>  
       <xsl:if test="$hasother and $other/bugs/@rc_m">  
         (<xsl:element name="a">  
363            <xsl:attribute name="href">            <xsl:attribute name="href">
364              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=no&amp;src=</xsl:text>
365              <xsl:value-of select="$escaped-package" />              <xsl:value-of select="$escaped-package" />
             <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&amp;repeatmerged=yes</xsl:text>  
366            </xsl:attribute>            </xsl:attribute>
367            <xsl:value-of select="$other/bugs/@rc_m"/>            <xsl:if test="$hasother">
368          </xsl:element>)              <span class="bugcount" title="all">
369        </xsl:if>                <xsl:value-of select="$other/bugs/@all"/>
370      </td>              </span>
371    </tr>            </xsl:if>
372    <tr class="normalrow" id="bugs_in">          </xsl:element>
373      <td class="labelcell"><span class="indented"><acronym title="Important and Normal">I&amp;N</acronym> bugs</span></td>          <xsl:if test="$hasother and $other/bugs/@all_m">
374      <td class="contentcell">            (<xsl:element name="a">
375        <xsl:element name="a">              <xsl:attribute name="href">
376          <xsl:attribute name="href">                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=yes&amp;src=</xsl:text>
377            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>                <xsl:value-of select="$escaped-package" />
378            <xsl:value-of select="$escaped-package" />              </xsl:attribute>
379            <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&amp;repeatmerged=no</xsl:text>              <xsl:value-of select="$other/bugs/@all_m"/>
380          </xsl:attribute>            </xsl:element>)
         <xsl:if test="$hasother">  
           <xsl:value-of select="$other/bugs/@normal"/>  
381          </xsl:if>          </xsl:if>
382        </xsl:element>        </dd>
383        <xsl:if test="$hasother and $other/bugs/@normal_m">        <dt id="bugs_rc" title="Release Critical">
384          (<xsl:element name="a">          <span class="indented">RC</span>
385          </dt>
386          <dd>
387            <xsl:element name="a">
388            <xsl:attribute name="href">            <xsl:attribute name="href">
389              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
390              <xsl:value-of select="$escaped-package" />              <xsl:value-of select="$escaped-package" />
391              <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&amp;repeatmerged=yes</xsl:text>              <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&amp;repeatmerged=no</xsl:text>
392            </xsl:attribute>            </xsl:attribute>
393            <xsl:value-of select="$other/bugs/@normal_m"/>            <xsl:if test="$hasother">
394          </xsl:element>)              <span class="bugcount" title="rc">
395        </xsl:if>                <xsl:value-of select="$other/bugs/@rc"/>
396      </td>              </span>
397    </tr>            </xsl:if>
398    <tr class="normalrow" id="bugs_mw">          </xsl:element>
399      <td class="labelcell"><span class="indented"><acronym title="Minor and Wishlist">M&amp;W</acronym> bugs</span></td>          <xsl:if test="$hasother and $other/bugs/@rc_m">
400      <td class="contentcell">            (<xsl:element name="a">
401        <xsl:element name="a">              <xsl:attribute name="href">
402          <xsl:attribute name="href">                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
403            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>                <xsl:value-of select="$escaped-package" />
404            <xsl:value-of select="$escaped-package" />                <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&amp;repeatmerged=yes</xsl:text>
405            <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&amp;repeatmerged=no</xsl:text>              </xsl:attribute>
406          </xsl:attribute>              <xsl:value-of select="$other/bugs/@rc_m"/>
407          <xsl:if test="$hasother">            </xsl:element>)
           <xsl:value-of select="$other/bugs/@wishlist"/>  
408          </xsl:if>          </xsl:if>
409        </xsl:element>        </dd>
410        <xsl:if test="$hasother and $other/bugs/@wishlist_m">        <dt id="bugs_in" title="Important and Normal">
411          (<xsl:element name="a">          <span class="indented">I&amp;N</span>
412          </dt>
413          <dd>
414            <xsl:element name="a">
415            <xsl:attribute name="href">            <xsl:attribute name="href">
416              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
417              <xsl:value-of select="$escaped-package" />              <xsl:value-of select="$escaped-package" />
418              <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&amp;repeatmerged=yes</xsl:text>              <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&amp;repeatmerged=no</xsl:text>
419            </xsl:attribute>            </xsl:attribute>
420            <xsl:value-of select="$other/bugs/@wishlist_m"/>            <xsl:if test="$hasother">
421          </xsl:element>)              <span class="bugcount" title="in">
422        </xsl:if>                <xsl:value-of select="$other/bugs/@normal"/>
423      </td>              </span>
424    </tr>            </xsl:if>
425    <tr class="normalrow" id="bugs_fp">          </xsl:element>
426      <td class="labelcell"><span class="indented"><acronym title="Fixed and Pending">F&amp;P</acronym> bugs</span></td>          <xsl:if test="$hasother and $other/bugs/@normal_m">
427      <td class="contentcell">            (<xsl:element name="a">
428        <xsl:element name="a">              <xsl:attribute name="href">
429          <xsl:attribute name="href">                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
430            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>                <xsl:value-of select="$escaped-package" />
431            <xsl:value-of select="$escaped-package" />                <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&amp;repeatmerged=yes</xsl:text>
432            <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=no</xsl:text>              </xsl:attribute>
433          </xsl:attribute>              <xsl:value-of select="$other/bugs/@normal_m"/>
434          <xsl:if test="$hasother">            </xsl:element>)
           <xsl:value-of select="$other/bugs/@fixed"/>  
435          </xsl:if>          </xsl:if>
436        </xsl:element>        </dd>
437        <xsl:if test="$hasother and $other/bugs/@fixed_m">        <dt id="bugs_mw" title="Minor and Wishlist">
438          (<xsl:element name="a">          <span class="indented">M&amp;W</span>
439          </dt>
440          <dd>
441            <xsl:element name="a">
442            <xsl:attribute name="href">            <xsl:attribute name="href">
443              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
444              <xsl:value-of select="$escaped-package" />              <xsl:value-of select="$escaped-package" />
445              <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=yes</xsl:text>              <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&amp;repeatmerged=no</xsl:text>
446            </xsl:attribute>            </xsl:attribute>
447            <xsl:value-of select="$other/bugs/@fixed_m"/>            <xsl:if test="$hasother">
448          </xsl:element>)              <span class="bugcount" title="mw">
449        </xsl:if>                <xsl:value-of select="$other/bugs/@wishlist"/>
450      </td>              </span>
451    </tr>            </xsl:if>
452    <xsl:if test="$other/bugs/@gift > 0">          </xsl:element>
453      <tr class="normalrow" id="bugs_gift">          <xsl:if test="$hasother and $other/bugs/@wishlist_m">
454        <td class="labelcell"><span class="indented"><a            (<xsl:element name="a">
455              href="http://wiki.debian.org/qa.debian.org/GiftTag">Gift</a>              <xsl:attribute name="href">
456            bugs</span></td>                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
457        <td class="contentcell">                <xsl:value-of select="$escaped-package" />
458                  <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&amp;repeatmerged=yes</xsl:text>
459                </xsl:attribute>
460                <xsl:value-of select="$other/bugs/@wishlist_m"/>
461              </xsl:element>)
462            </xsl:if>
463          </dd>
464          <dt id="bugs_fp" title="Fixed and Pending">
465            <span class="indented">F&amp;P</span>
466          </dt>
467          <dd>
468          <xsl:element name="a">          <xsl:element name="a">
469            <xsl:attribute name="href">            <xsl:attribute name="href">
470              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
471              <xsl:value-of select="$escaped-package" />              <xsl:value-of select="$escaped-package" />
472              <xsl:text>&amp;users=debian-qa@lists.debian.org;tag=gift</xsl:text>              <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=no</xsl:text>
473            </xsl:attribute>            </xsl:attribute>
474            <xsl:value-of select="$other/bugs/@gift" />            <xsl:if test="$hasother">
475                <span class="bugcount" title="fp">
476                  <xsl:value-of select="$other/bugs/@fixed"/>
477                </span>
478              </xsl:if>
479          </xsl:element>          </xsl:element>
480        </td>          <xsl:if test="$hasother and $other/bugs/@fixed_m">
481      </tr>            (<xsl:element name="a">
482    </xsl:if>              <xsl:attribute name="href">
483                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
484                  <xsl:value-of select="$escaped-package" />
485                  <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=yes</xsl:text>
486                </xsl:attribute>
487                <xsl:value-of select="$other/bugs/@fixed_m"/>
488              </xsl:element>)
489            </xsl:if>
490          </dd>
491          <xsl:if test="$other/bugs/@gift &gt; 0">
492            <dt id="bugs_gift">
493              <span class="indented">
494                <a href="http://wiki.debian.org/qa.debian.org/GiftTag">gift</a>
495              </span>
496            </dt>
497            <dd>
498              <xsl:element name="a">
499                <xsl:attribute name="href">
500                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
501                  <xsl:value-of select="$escaped-package" />
502                <xsl:text>&amp;users=debian-qa@lists.debian.org;tag=gift</xsl:text>
503                </xsl:attribute>
504                <span class="bugcount" title="gift">
505                  <xsl:value-of select="$other/bugs/@gift" />
506                </span>
507              </xsl:element>
508            </dd>
509          </xsl:if>
510        </dl>
511      </div>
512  </xsl:template>  </xsl:template>
513    
514  <xsl:template name="pts-subscription">  <xsl:template name="pts-subscription">
515    <tr class="titlerow">    <!-- <acronym title="Package Tracking System">PTS</acronym> subscription -->
516      <td class="titlecell" colspan="2">    <!-- <tr class="normalrow"> -->
517        <a class="titlelink" href="http://www.debian.org/doc/manuals/developers-reference/resources.html#pkg-tracking-system"><acronym title="Package Tracking System">PTS</acronym></a> subscription    <!--   <td class="labelcell">Subscribers count</td> -->
518    </td></tr>    <!--   <td class="contentcell"><xsl:if test="$hasother"> -->
519    <tr class="normalrow">    <!--  <xsl:value-of select="$other/pts/@count"/> -->
520      <td class="labelcell">Subscribers count</td>    <!--   </xsl:if></td> -->
521      <td class="contentcell"><xsl:if test="$hasother">    <!-- </tr> -->
522          <xsl:value-of select="$other/pts/@count"/>    <form method="post" action="/cgi-bin/pts.cgi">
523      </xsl:if></td>      <p>
524    </tr>        <input type="hidden" name="package" value="{$package}"/>
525    <tr class="normalrow">        subscribe to this package<br />
526      <td class="contentcell" colspan="2">        <input type="text" name="email" size="10" value="email"
527        <form method="post" action="/cgi-bin/pts.cgi">               onfocus="if(email.value=='your email'){{email.value=''}}"/>
528          <p>        <select name="what">
529            <input type="hidden" name="package" value="{$package}"/>          <option value="subscribe">sub</option>
530            <select name="what">          <option value="unsubscribe">unsub</option>
531              <option value="subscribe">Subscribe</option>          <option value="advanced">opts</option>
532              <option value="unsubscribe">Unsubscribe</option>        </select>
533              <option value="advanced">Advanced mode</option>        <input type="submit" name="submit" value="go"/>
534            </select>      </p>
535            <input type="text" name="email" size="15" value="your email"    </form>
             onfocus="if(email.value=='your email'){{email.value=''}}"/>  
           <input type="submit" name="submit" value="Send"/>  
         </p>  
       </form>  
     </td>  
   </tr>  
536  </xsl:template>  </xsl:template>
537    
538  <xsl:template name="binary-packages">  <xsl:template name="binary-packages">
539    <tr class="titlerow">    <div class="block binaries">
540      <td class="titlecell" colspan="2">Binary packages</td>      <a name="binaries" />
541    </tr>      <h2>binaries</h2>
542    <tr class="normalrow">      <ul>
543      <td class="normalcell" colspan="2" style="text-align: left">        <xsl:for-each select="binary/item">
544        <ul>          <xsl:sort select="text()"/>
545          <xsl:for-each select="binary/item">          <xsl:variable name="pkg" select="text()"/>
546            <xsl:sort select="text()"/>          <xsl:variable name="tooltip"
547            <xsl:variable name="pkg" select="text()"/>                        select="concat($pkg, ': ',
548            <xsl:variable name="tooltip"                                $other/descriptions/shortdesc[@package=$pkg])" />
549              select="concat($pkg, ': ',          <li class="binpkg">
550                  $other/descriptions/shortdesc[@package=$pkg])" />            <a class="binpkg" title="{$tooltip}"
551            <li class="binpkg">               href="http://packages.debian.org/{text()}">
552              <a class="binpkg" title="{$tooltip}"              <span class="binpkg"><xsl:value-of select="text()"/></span>
553                href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>            </a>
554              <span style="font-size: 70%">            <span style="font-size: 70%">
555                (<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>:
556                <xsl:element name="a">
557                <xsl:element name="a">                <xsl:attribute name="title">critical, grave and serious</xsl:attribute>
558                  <xsl:attribute name="title">critical, grave and serious</xsl:attribute>                <xsl:attribute name="href">
559                  <xsl:attribute name="href">                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
560                    <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>                  <xsl:call-template name="escape-name">
561                    <xsl:call-template name="escape-name">                    <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
562                      <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>                  </xsl:call-template>
563                    </xsl:call-template>                  <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>
564                    <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>                </xsl:attribute>
565                  </xsl:attribute>                <xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>
566                  <xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>              </xsl:element>,
567                </xsl:element>,              <xsl:element name="a">
568                  <xsl:attribute name="title">important and normal</xsl:attribute>
569                <xsl:element name="a">                <xsl:attribute name="href">
570                  <xsl:attribute name="title">important and normal</xsl:attribute>                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
571                  <xsl:attribute name="href">                  <xsl:call-template name="escape-name">
572                    <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>                    <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
573                    <xsl:call-template name="escape-name">                  </xsl:call-template>
574                      <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>                  <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>
575                    </xsl:call-template>                </xsl:attribute>
576                    <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>                <xsl:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>
577                  </xsl:attribute>              </xsl:element>,
578                  <xsl:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>              <xsl:element name="a">
579                </xsl:element>,                <xsl:attribute name="title">wishlist and minor</xsl:attribute>
580                  <xsl:attribute name="href">
581                <xsl:element name="a">                  <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
582                  <xsl:attribute name="title">wishlist and minor</xsl:attribute>                  <xsl:call-template name="escape-name">
583                  <xsl:attribute name="href">                    <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
584                    <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>                  </xsl:call-template>
585                    <xsl:call-template name="escape-name">                  <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>
586                      <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>                </xsl:attribute>
587                    </xsl:call-template>                <xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>
588                    <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>              </xsl:element>,
589                  </xsl:attribute>              <xsl:element name="a">
590                  <xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>                <xsl:attribute name="title">pending and fixed</xsl:attribute>
591                </xsl:element>,                <xsl:attribute name="href">
592                    <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
593                <xsl:element name="a">                  <xsl:call-template name="escape-name">
594                  <xsl:attribute name="title">pending and fixed</xsl:attribute>                    <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
595                  <xsl:attribute name="href">                  </xsl:call-template>
596                    <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>                  <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
597                    <xsl:call-template name="escape-name">                </xsl:attribute>
598                      <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>                <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>
599                    </xsl:call-template>              </xsl:element>)
600                    <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>            </span>
601                  </xsl:attribute>          </li>
602                  <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>        </xsl:for-each>
603                </xsl:element>)      </ul>
604              </span>    </div>
           </li>  
         </xsl:for-each>  
   </ul></td></tr>  
605  </xsl:template>  </xsl:template>
606    
607  <xsl:template name="output-version">  <xsl:template name="output-version">
# Line 612  other-to-%xx, especially % to %25... For Line 615  other-to-%xx, especially % to %25... For
615    </xsl:variable>    </xsl:variable>
616    <xsl:choose>    <xsl:choose>
617      <xsl:when test="$link='yes'">      <xsl:when test="$link='yes'">
618          <xsl:element name="a">
619            <xsl:attribute name="class">dsc</xsl:attribute>
620            <xsl:attribute name="href">
621              <xsl:value-of select="$mirror"/>
622              <xsl:text>/</xsl:text>
623              <xsl:value-of select="$pooldir"/>
624              <xsl:text>/</xsl:text>
625              <xsl:value-of select="document(concat('../base/', $dir, '/',
626                                    $suite, '.xml'))/source/files/item[1]/filename"/>
627            </xsl:attribute>
628            <xsl:attribute name="title">.dsc, use dget on this link to retrieve source package</xsl:attribute>
629            <img src="../common/save.png" alt="save" />
630          </xsl:element>
631        <a href="http://packages.debian.org/source/{$suite}/{$package}">        <a href="http://packages.debian.org/source/{$suite}/{$package}">
632          <xsl:copy-of select="$version" />          <xsl:copy-of select="$version" />
633        </a>        </a>
# Line 622  other-to-%xx, especially % to %25... For Line 638  other-to-%xx, especially % to %25... For
638    </xsl:choose>    </xsl:choose>
639  </xsl:template>  </xsl:template>
640    
641  <xsl:template name="available-versions">  <xsl:template name="more-info-marker">
642    <tr class="titlerow">    <xsl:param name="href" />
643      <td class="titlecell" colspan="2">    <xsl:param name="title">more information are available on an external web page</xsl:param>
644        Available versions    <a href="{$href}">
645        <small>      <img src="../common/external.png" title="{$title}" alt="..." />
646          <a href="http://qa.debian.org/madison.php?package={$package}"    </a>
647            style="font-weight: normal"  </xsl:template>
           title="madison">(more...)</a>  
       </small>  
   </td></tr>  
   
   <!-- oldstable -->  
   <xsl:if test="$hasoldstable">  
     <tr class="normalrow">  
       <td class="labelcell"><a href="http://www.debian.org/releases/sarge/">Oldstable</a></td>  
       <td class="contentcell">  
         <xsl:call-template name="output-version">  
           <xsl:with-param name="suite">oldstable</xsl:with-param>  
         </xsl:call-template>  
       </td>  
     </tr>  
   </xsl:if>  
   <xsl:if test="$hassecurity-oldstable">  
     <tr class="normalrow">  
       <td class="labelcell"><small>Oldstable Security Updates</small></td>  
       <td class="contentcell">  
         <xsl:call-template name="output-version">  
           <xsl:with-param name="suite">security-oldstable</xsl:with-param>  
           <xsl:with-param name="link">no</xsl:with-param>  
         </xsl:call-template>  
       </td>  
     </tr>  
   </xsl:if>  
   
   <!-- stable -->  
   <xsl:if test="$hasstable">  
     <tr class="normalrow">  
       <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>  
       <td class="contentcell">  
         <xsl:call-template name="output-version">  
           <xsl:with-param name="suite">stable</xsl:with-param>  
         </xsl:call-template>  
       </td>  
     </tr>  
   </xsl:if>  
   <xsl:if test="$hassecurity-stable">  
     <tr class="normalrow">  
       <td class="labelcell"><small>Stable Security Updates</small></td>  
       <td class="contentcell">  
         <xsl:call-template name="output-version">  
           <xsl:with-param name="suite">security-stable</xsl:with-param>  
           <xsl:with-param name="link">no</xsl:with-param>  
         </xsl:call-template>  
       </td>  
     </tr>  
   </xsl:if>  
   <xsl:if test="$hasstable-proposed-updates">  
     <tr class="normalrow">  
       <td class="labelcell"><small>Stable Proposed Updates</small></td>  
       <td class="contentcell">  
         <xsl:call-template name="output-version">  
           <xsl:with-param name="suite">stable-proposed-updates</xsl:with-param>  
           <xsl:with-param name="link">no</xsl:with-param>  
         </xsl:call-template>  
       </td>  
     </tr>  
   </xsl:if>  
   
   <!-- testing -->  
   <xsl:if test="$hastesting">  
     <tr class="normalrow">  
       <td class="labelcell"><a href="http://www.debian.org/releases/testing/">Testing</a></td>  
       <td class="contentcell">  
         <xsl:call-template name="output-version">  
           <xsl:with-param name="suite">testing</xsl:with-param>  
         </xsl:call-template>  
       </td>  
     </tr>  
   </xsl:if>  
   <xsl:if test="$hassecurity-testing">  
     <tr class="normalrow">  
       <td class="labelcell"><small>Testing Security Updates</small></td>  
       <td class="contentcell">  
         <xsl:call-template name="output-version">  
           <xsl:with-param name="suite">security-testing</xsl:with-param>  
           <xsl:with-param name="link">no</xsl:with-param>  
         </xsl:call-template>  
       </td>  
     </tr>  
   </xsl:if>  
   <xsl:if test="$hastesting-proposed-updates">  
     <tr class="normalrow">  
       <td class="labelcell"><small>Testing Proposed Updates</small></td>  
       <td class="contentcell">  
         <xsl:call-template name="output-version">  
           <xsl:with-param name="suite">testing-proposed-updates</xsl:with-param>  
           <xsl:with-param name="link">no</xsl:with-param>  
         </xsl:call-template>  
       </td>  
     </tr>  
   </xsl:if>  
   
   <!-- unstable -->  
   <xsl:if test="$hasunstable">  
     <tr class="normalrow">  
       <td class="labelcell">Unstable</td>  
       <td class="contentcell">  
         <xsl:call-template name="output-version">  
           <xsl:with-param name="suite">unstable</xsl:with-param>  
         </xsl:call-template>  
       </td>  
     </tr>  
   </xsl:if>  
   
   <!-- experimental -->  
   <xsl:if test="$hasexperimental">  
     <tr class="normalrow">  
       <td class="labelcell">Experimental</td>  
       <td class="contentcell">  
         <xsl:call-template name="output-version">  
           <xsl:with-param name="suite">experimental</xsl:with-param>  
         </xsl:call-template>  
       </td>  
     </tr>  
   </xsl:if>  
648    
649    <!-- secure-testing -->  <xsl:template name="available-versions">
650    <xsl:if test="$hassecure-testing">    <div class="block versions">
651      <tr class="normalrow">      <a name="versions" />
652        <td class="labelcell">Secure testing</td>      <h2>versions
653        <td class="contentcell">        <xsl:call-template name="more-info-marker">
654          <xsl:call-template name="output-version">          <xsl:with-param name="href">
655            <xsl:with-param name="suite">secure-testing</xsl:with-param>            <xsl:text>http://qa.debian.org/madison.php?package=</xsl:text>
656            <xsl:with-param name="link">no</xsl:with-param>            <xsl:value-of select="$package" />
657          </xsl:call-template>          </xsl:with-param>
658        </td>          <xsl:with-param name="title">more versions can be listed by madison</xsl:with-param>
659      </tr>        </xsl:call-template>
660    </xsl:if>        <a class="dsc" href="{$mirror}/{$pooldir}">
661            <img src="../common/folder.png" alt="pool" title="pool directory" />
662          </a>
663        </h2>
664    
665    <!-- volatile -->      <dl>
666    <xsl:if test="$hasvolatile">        <xsl:if test="$hasoldstable">
667      <tr class="normalrow">          <dt title="old stable release">oldstable</dt>
668        <td class="labelcell">Volatile</td>          <dd>
669        <td class="contentcell">            <xsl:call-template name="output-version">
670          <xsl:call-template name="output-version">              <xsl:with-param name="suite">oldstable</xsl:with-param>
671            <xsl:with-param name="suite">volatile</xsl:with-param>            </xsl:call-template>
672            <xsl:with-param name="link">no</xsl:with-param>          </dd>
673          </xsl:call-template>        </xsl:if>
674        </td>        <xsl:if test="$hassecurity-oldstable">
675      </tr>          <dt title="security updates for the old stable release">old-sec</dt>
676    </xsl:if>          <dd>
677              <xsl:call-template name="output-version">
678                <xsl:with-param name="suite">security-oldstable</xsl:with-param>
679                <xsl:with-param name="link">no</xsl:with-param>
680              </xsl:call-template>
681            </dd>
682          </xsl:if>
683          <xsl:if test="$hasstable">
684            <dt>stable</dt>
685            <dd>
686              <xsl:call-template name="output-version">
687                <xsl:with-param name="suite">stable</xsl:with-param>
688              </xsl:call-template>
689            </dd>
690          </xsl:if>
691          <xsl:if test="$hassecurity-stable">
692            <dt title="security updates for the stable release">stable-sec</dt>
693            <dd>
694              <xsl:call-template name="output-version">
695                <xsl:with-param name="suite">security-stable</xsl:with-param>
696                <xsl:with-param name="link">no</xsl:with-param>
697              </xsl:call-template>
698            </dd>
699          </xsl:if>
700          <xsl:if test="$hasstable-proposed-updates">
701            <dt title="stable proposed updates">s-p-u</dt>
702            <dd>
703              <xsl:call-template name="output-version">
704                <xsl:with-param name="suite">stable-proposed-updates</xsl:with-param>
705                <xsl:with-param name="link">no</xsl:with-param>
706              </xsl:call-template>
707            </dd>
708          </xsl:if>
709          <xsl:if test="$hastesting">
710            <dt>testing</dt>
711            <dd>
712              <xsl:call-template name="output-version">
713                <xsl:with-param name="suite">testing</xsl:with-param>
714              </xsl:call-template>
715            </dd>
716          </xsl:if>
717          <xsl:if test="$hassecurity-testing">
718            <dt title="security updates for the testing release">testing-sec</dt>
719            <dd>
720              <xsl:call-template name="output-version">
721                <xsl:with-param name="suite">security-testing</xsl:with-param>
722                <xsl:with-param name="link">no</xsl:with-param>
723              </xsl:call-template>
724            </dd>
725          </xsl:if>
726          <xsl:if test="$hastesting-proposed-updates">
727            <dt title="testing proposed updates">t-p-u</dt>
728            <dd>
729              <xsl:call-template name="output-version">
730                <xsl:with-param name="suite">testing-proposed-updates</xsl:with-param>
731                <xsl:with-param name="link">no</xsl:with-param>
732              </xsl:call-template>
733            </dd>
734          </xsl:if>
735          <xsl:if test="$hasunstable">
736            <dt>unstable</dt>
737            <dd>
738              <xsl:call-template name="output-version">
739                <xsl:with-param name="suite">unstable</xsl:with-param>
740              </xsl:call-template>
741            </dd>
742          </xsl:if>
743          <xsl:if test="$hasexperimental">
744            <dt title="experimental release">experimental</dt>
745            <dd>
746              <xsl:call-template name="output-version">
747                <xsl:with-param name="suite">experimental</xsl:with-param>
748              </xsl:call-template>
749            </dd>
750          </xsl:if>
751          <xsl:if test="$hasvolatile">
752            <dt>volatile</dt>
753            <dd>
754              <xsl:call-template name="output-version">
755                <xsl:with-param name="suite">volatile</xsl:with-param>
756                <xsl:with-param name="link">no</xsl:with-param>
757              </xsl:call-template>
758            </dd>
759          </xsl:if>
760          <xsl:if test="$hasother and $other/@new_version">
761            <dt title="waiting in the NEW queue for FTP master review">
762              <a href="http://ftp-master.debian.org/new.html">NEW</a>
763            </dt>
764            <dd>
765              <xsl:value-of select="$other/@new_version" />
766            </dd>
767          </xsl:if>
768        </dl>
769      </div>
770  </xsl:template>  </xsl:template>
771    
772  <xsl:template name="ubuntu">  <xsl:template name="ubuntu">
   <!-- Patches list [FG] -->  
773    <xsl:if test="$other/@ubuntu='yes'">    <xsl:if test="$other/@ubuntu='yes'">
774      <tr class="titlerow">      <div class="block ubuntu">
775        <td class="titlecell" colspan="2"><a        <a name="ubuntu" />
776            title="Information about Ubuntu for Debian Developers"        <h2>ubuntu
777            href="https://wiki.ubuntu.com/Ubuntu/ForDebianDevelopers">Ubuntu ...</a>          <img src="../common/ubuntu.png" alt="ubuntu" />
778        </td>          <xsl:text> </xsl:text>
779      </tr>          <xsl:call-template name="more-info-marker">
780      <tr>            <xsl:with-param name="href">https://wiki.ubuntu.com/Ubuntu/ForDebianDevelopers</xsl:with-param>
781        <td class="contentcell" colspan="2" style="text-align: left">            <xsl:with-param name="title">Information about Ubuntu for Debian Developers</xsl:with-param>
782          <ul>          </xsl:call-template>
783              <li>        </h2>
                     Version: <a href="{$other/ubuntu/@url}"><xsl:value-of select="$other/ubuntu/@version"/></a>  
             </li>  
           <xsl:if test="$other/ubuntu/patch">  
             <li>  
                     <a href="{$other/ubuntu/patch/@url}">Patch for version <xsl:value-of select="$other/ubuntu/patch/@version"/></a>  
             </li>  
           </xsl:if>  
           <xsl:if test="$other/ubuntu/bugs">  
             <li>  
                     <a href="{$other/ubuntu/bugs/@url}"><xsl:value-of select="$other/ubuntu/bugs/@count"/> open bugs</a>  
             </li>  
           </xsl:if>  
         </ul>  
       </td>  
     </tr>  
   </xsl:if>  
 </xsl:template>  
   
 <xsl:template name="other-links">  
   <tr class="titlerow">  
     <td class="titlecell" colspan="2">  
       Other links  
   </td></tr>  
   <tr>  
     <td class="contentcell" colspan="2" style="text-align: left">  
784        <ul>        <ul>
         <xsl:if test="homepage">  
           <li> <a href="{homepage}">Upstream homepage</a> </li>  
         </xsl:if>  
785          <li>          <li>
786            <xsl:element name="a">            version: <a href="{$other/ubuntu/@url}"><xsl:value-of select="$other/ubuntu/@version"/></a>
             <xsl:attribute name="href">  
               <xsl:text>http://packages.debian.org/changelogs/</xsl:text>  
               <xsl:value-of select="directory"/>  
               <xsl:text>/current/changelog</xsl:text>  
             </xsl:attribute>  
             <xsl:text>Changelog</xsl:text>  
           </xsl:element>  
           /  
           <xsl:element name="a">  
             <xsl:attribute name="href">  
               <xsl:text>http://packages.debian.org/changelogs/</xsl:text>  
               <xsl:value-of select="directory"/>  
               <xsl:text>/current/copyright</xsl:text>  
             </xsl:attribute>  
             <xsl:text>Copyright</xsl:text>  
           </xsl:element>  
787          </li>          </li>
788          <xsl:if test="architecture!='all'">          <xsl:if test="$other/ubuntu/patch">
789            <li>            <li>
790              <xsl:text>Buildd: </xsl:text>              <a href="{$other/ubuntu/patch/@url}">patches for
791              <a href="http://buildd.debian.org/pkg.cgi?pkg={$escaped-package}"              <xsl:value-of select="$other/ubuntu/patch/@version"/></a>
               title="buildd.debian.org build logs">logs</a>  
             <xsl:text>, </xsl:text>  
             <!-- <a href="http://people.debian.org/~igloo/status.php?packages={$escaped-package}"  
               title="igloo's build logs on people.debian.org">more</a> -->  
             <a href="http://buildd.debian.org/~jeroen/status/package.php?p={$escaped-package}"  
               title="jeroen's build logs on buildd.debian.org">more</a>  
             <xsl:text>, </xsl:text>  
             <a href="http://experimental.debian.net/build.php?pkg={$escaped-package}"  
               title="experimental.debian.net build logs">exp</a>  
             <xsl:text>, </xsl:text>  
             <a href="http://buildd.debian-ports.org/status/package.php?p={$escaped-package}"  
               title="debian ports build logs">ports</a>  
792            </li>            </li>
793          </xsl:if>          </xsl:if>
794          <!-- DISABLED until ddtp.debian.org is back up          <xsl:if test="$other/ubuntu/bugs">
         <li>  
           <xsl:element name="a">  
             <xsl:attribute name="href">  
               <xsl:text>http://ddtp.debian.org/stats/pdesc/report.cgi?package=</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>&amp;lang=all&amp;type=src-drvbin&amp;subword=0</xsl:text>  
             </xsl:attribute>  
             Description's translations (DDTP)  
           </xsl:element>  
         </li>  
         <xsl:if test="$other/@debconf='yes'">  
795            <li>            <li>
796              <xsl:element name="a">              <a href="{$other/ubuntu/bugs/@url}"><xsl:value-of select="$other/ubuntu/bugs/@count"/>
797                <xsl:attribute name="href">              bugs</a>
798                  <xsl:text>http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package=</xsl:text>              <xsl:if test="$other/ubuntu/bugpatches">
799                  <xsl:call-template name="escape-name">                (<a href="{$other/ubuntu/bugpatches/@url}"><xsl:value-of select="$other/ubuntu/bugpatches/@count"/>
800                    <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>                patches</a>)
                 </xsl:call-template>  
               </xsl:attribute>  
               Debconf templates's translations (DDTP)  
             </xsl:element>  
           </li>  
         </xsl:if>  
         -->  
         <xsl:if test="($hasunstable and $other/debcheck/@unstable='yes')  
           or ($hastesting and $other/debcheck/@testing='yes')  
           or ($hasstable and $other/debcheck/@stable='yes')">  
           <li>  
             Debcheck on:  
             <xsl:if test="$hasunstable">  
               <xsl:text> </xsl:text>  
               <a href="http://qa.debian.org/debcheck.php?dist=unstable&amp;package={$escaped-package}">unstable</a>  
             </xsl:if>  
             <xsl:if test="$hastesting">  
               <xsl:text> </xsl:text>  
               <a href="http://qa.debian.org/debcheck.php?dist=testing&amp;package={$escaped-package}">testing</a>  
             </xsl:if>  
             <xsl:if test="$hasstable">  
               <xsl:text> </xsl:text>  
               <a href="http://qa.debian.org/debcheck.php?dist=stable&amp;package={$escaped-package}">stable</a>  
             </xsl:if>  
           </li>  
         </xsl:if>  
         <xsl:if test="$other/@lintian='yes'">  
           <xsl:variable name="lintian_url"><xsl:call-template name="mk_lintian_url" /></xsl:variable>  
           <li>  
             <a href="{$lintian_url}">Lintian report</a>  
             <xsl:if test="$lin_errs + $lin_warns > 0">  
               <xsl:text> </xsl:text>  
               <small><span title="(errors, warnings)">(<xsl:value-of select="$lin_errs" />,  
                   <xsl:value-of select="$lin_warns" />)</span></small>  
801              </xsl:if>              </xsl:if>
802            </li>            </li>
803          </xsl:if>          </xsl:if>
         <li>  
           <a href="http://qa.debian.org/developer.php?popcon={$escaped-package}">Popcon stats</a>  
         </li>  
         <xsl:if test="$other/@svnbuildstat='yes'">  
           <li>  
             <a href="http://svnbuildstat.debian.net/packages/info/{$escaped-package}">Svnbuildstat</a>  
           </li>  
         </xsl:if>  
804        </ul>        </ul>
805      </td>      </div>
806    </tr>    </xsl:if>
807  </xsl:template>  </xsl:template>
808    
809  <xsl:template name="package-files">  <xsl:template name="other-links">
810    <tr class="titlerow">    <div class="block links">
811      <td class="titlecell" colspan="2">Source package</td>      <a name="links" />
812    </tr>      <h2>links</h2>
813    <tr class="titlerow">      <ul>
814      <td class="labelcell">        <xsl:if test="homepage">
815        <xsl:element name="a">          <li><a title="upstream web homepage" href="{homepage}">homepage</a></li>
816          <xsl:attribute name="href">        </xsl:if>
817            <xsl:call-template name="mirror"/>        <li>
818            <xsl:text>/</xsl:text>          <xsl:element name="a">
819            <xsl:value-of select="directory"/>            <xsl:attribute name="href">
820            <xsl:text>/</xsl:text>              <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
821          </xsl:attribute>              <xsl:value-of select="directory"/>
822          <xsl:text>Files</xsl:text>              <xsl:text>/current/changelog</xsl:text>
823        </xsl:element>            </xsl:attribute>
824      </td>            <xsl:text>changelog</xsl:text>
825      <td class="contentcell" id="src_files">          </xsl:element>
826        <ul>          /
827          <xsl:for-each select="files/item">          <xsl:element name="a">
828            <xsl:variable name="filetype">            <xsl:attribute name="href">
829              <xsl:call-template name="categorize-srcfile" />              <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
830            </xsl:variable>              <xsl:value-of select="directory"/>
831            <xsl:element name="li">              <xsl:text>/current/copyright</xsl:text>
832              <xsl:attribute name="class">srcfile</xsl:attribute>            </xsl:attribute>
833              <xsl:if test="string($filetype)!=''">            <xsl:text>copyright</xsl:text>
834                <xsl:attribute name="id">          </xsl:element>
835                  <xsl:text>srcfile_</xsl:text>        </li>
836                  <xsl:value-of select="$filetype" />        <xsl:if test="architecture!='all'">
837                </xsl:attribute>          <li>
838              </xsl:if>            <xsl:text>buildd: </xsl:text>
839              <xsl:element name="a">            <a href="http://buildd.debian.org/pkg.cgi?pkg={$escaped-package}"
840                <xsl:attribute name="class">srcfile</xsl:attribute>               title="buildd.debian.org build logs">logs</a>
841                <xsl:attribute name="href">            <xsl:text>, </xsl:text>
842                  <xsl:call-template name="mirror"/>            <!-- <a href="http://people.debian.org/~igloo/status.php?packages={$escaped-package}"
843                  <xsl:text>/</xsl:text>                    title="igloo's build logs on people.debian.org">more</a> -->
844                  <xsl:value-of select="../../directory"/>            <a href="http://buildd.debian.org/status/package.php?p={$escaped-package}"
845                  <xsl:text>/</xsl:text>               title="build logs on buildd.debian.org">more</a>
846                  <xsl:value-of select="filename"/>            <xsl:text>, </xsl:text>
847                </xsl:attribute>                 <xsl:if test="$hasexperimental">
848                <xsl:attribute name="title">                   <!--
849                  <xsl:value-of select="filename" />                   <a href="http://experimental.debian.net/new/package.php?p={$escaped-package}&amp;suite=experimental"
850                  <xsl:text>: </xsl:text>                      title="experimental.debian.net build logs">exp</a>
851                  <xsl:value-of select="size"/>                    -->
852                  <xsl:text> bytes</xsl:text>                   <a href="https://buildd.debian.org/status/package.php?p={$escaped-package}&amp;suite=experimental"
853                </xsl:attribute>                      title="experimental build logs">exp</a>
854                <xsl:text>.</xsl:text>                   <xsl:text>, </xsl:text>
855                <xsl:value-of select="$filetype"/>                 </xsl:if>
856              </xsl:element>                 <a href="http://buildd.debian-ports.org/status/package.php?p={$escaped-package}"
857            </xsl:element>                    title="debian ports build logs">ports</a>
858          </xsl:for-each>          </li>
859        </ul>        </xsl:if>
860      </td>        <xsl:if test="$hasother and $other/@piuparts='yes'">
861    </tr>          <li>
862              <a title="report about errors found while stressing package installation"
863                 href="http://piuparts.debian.org/sid/source/{$hash}/{$package}.html">piuparts</a>
864            </li>
865          </xsl:if>
866          <xsl:if test="($hasunstable and $other/debcheck/@unstable='yes')
867                        or ($hastesting and $other/debcheck/@testing='yes')
868                        or ($hasstable and $other/debcheck/@stable='yes')">
869            <li>
870              debcheck:
871              <xsl:if test="$hasunstable">
872                <xsl:text> </xsl:text>
873                <a href="http://qa.debian.org/debcheck.php?dist=unstable&amp;package={$escaped-package}">unstable</a>
874              </xsl:if>
875              <xsl:if test="$hastesting">
876                <xsl:text> </xsl:text>
877                <a href="http://qa.debian.org/debcheck.php?dist=testing&amp;package={$escaped-package}">testing</a>
878              </xsl:if>
879              <xsl:if test="$hasstable">
880                <xsl:text> </xsl:text>
881                <a href="http://qa.debian.org/debcheck.php?dist=stable&amp;package={$escaped-package}">stable</a>
882              </xsl:if>
883            </li>
884          </xsl:if>
885          <xsl:if test="$other/@lintian='yes'">
886            <xsl:variable name="lintian_url"><xsl:call-template name="mk_lintian_url" /></xsl:variable>
887            <li>
888              <a title="report about packaging issues spotted by lintian"
889                 href="{$lintian_url}">lintian</a>
890              <!-- <xsl:if test="$lin_errs + $lin_warns > 0"> -->
891              <!--   <xsl:text> </xsl:text> -->
892              <!--   <small><span title="(errors, warnings)">(<span id="lintian_errors"><xsl:value-of select="$lin_errs" /></span>, -->
893              <!--  <span id="lintian_warnings"><xsl:value-of select="$lin_warns" /></span>)</span></small> -->
894              <!-- </xsl:if> -->
895            </li>
896          </xsl:if>
897          <li>
898            <a title="package popularity"
899               href="http://qa.debian.org/popcon.php?package={$escaped-package}">popcon</a>
900          </li>
901          <xsl:if test="$other/@svnbuildstat='yes'">
902            <li>
903              <a href="http://svnbuildstat.debian.net/packages/info/{$escaped-package}">Svnbuildstat</a>
904            </li>
905          </xsl:if>
906          <xsl:if test="$other/i18n/@href">
907            <li>
908              <a title="translation status"
909                 href="{$other/i18n/@href}">l10n</a>
910              <small>
911                (<span title="completeness of Debian string translation">
912                  <xsl:value-of select="$other/i18n/@deb" />
913                </span>,
914                <span title="completeness of non-Debian string translation">
915                  <xsl:value-of select="$other/i18n/@nondeb" />
916                </span>)
917              </small>
918            </li>
919          </xsl:if>
920          <xsl:if test="$other/@fonts='yes'">
921            <li>
922              <a title="fonts review" href="{$other/fonts/@href}">fonts</a>
923            </li>
924          </xsl:if>
925        </ul>
926      </div>
927  </xsl:template>  </xsl:template>
928    
929  <xsl:template name="todo-list">  <xsl:template name="todo-list">
930    <xsl:variable name="todo">    <xsl:variable name="todo">
931        <xsl:call-template name="issue-security" />
932      <xsl:call-template name="issue-nmu" />      <xsl:call-template name="issue-nmu" />
933      <xsl:call-template name="issue-lintian" />      <xsl:call-template name="issue-lintian" />
934      <xsl:call-template name="issue-mentors-pending" />      <xsl:call-template name="issue-mentors-pending" />
# Line 988  other-to-%xx, especially % to %25... For Line 936  other-to-%xx, especially % to %25... For
936      <xsl:call-template name="issue-outdate-stdver" />      <xsl:call-template name="issue-outdate-stdver" />
937      <xsl:call-template name="issue-new-upstream" />      <xsl:call-template name="issue-new-upstream" />
938      <xsl:call-template name="issue-patches" />      <xsl:call-template name="issue-patches" />
939        <xsl:call-template name="issue-l10n" />
940      <xsl:if test="$hasother">      <xsl:if test="$hasother">
941        <xsl:for-each select="$other/todo/item">        <xsl:for-each select="$other/todo/item">
942          <xsl:call-template name="outputitem" />          <xsl:call-template name="outputitem" />
943        </xsl:for-each>        </xsl:for-each>
944      </xsl:if>      </xsl:if>
945    </xsl:variable>    </xsl:variable>
946    
947    <xsl:if test="count($todo)>0 and string($todo)!=''">    <xsl:if test="count($todo)>0 and string($todo)!=''">
948      <tr class="titlerow">      <div class="block todo">
949        <td class="titlecell" id="todo">Todo</td>        <a name="todo" />
950      </tr>        <h2>todo</h2>
951      <tr class="normalrow">        <ul>
952        <td class="contentcell2"><ul><xsl:copy-of select="$todo"/></ul></td>          <xsl:copy-of select="$todo" />
953      </tr>        </ul>
954        </div>
955    </xsl:if>    </xsl:if>
956  </xsl:template>  </xsl:template>
957    
# Line 1021  other-to-%xx, especially % to %25... For Line 972  other-to-%xx, especially % to %25... For
972        </xsl:for-each>        </xsl:for-each>
973      </xsl:if>      </xsl:if>
974    </xsl:variable>    </xsl:variable>
975    
976    <xsl:if test="count($problems)>0 and string($problems)!=''">    <xsl:if test="count($problems)>0 and string($problems)!=''">
977      <tr class="titlerow">      <div class="block problems">
978        <td class="titlecell" id="problems">Problems</td>        <a name="problems" />
979      </tr>        <h2>problems</h2>
980      <tr class="normalrow">        <ul>
981        <td class="contentcell2"><ul><xsl:copy-of select="$problems"/></ul></td>          <xsl:copy-of select="$problems" />
982      </tr>        </ul>
983        </div>
984    </xsl:if>    </xsl:if>
985  </xsl:template>  </xsl:template>
986    
987  <xsl:template name="testing-status">  <xsl:template name="testing-status">
988    <xsl:if test="$hasexcuse or $other/@transitions='yes'">    <xsl:if test="$hasexcuse or $other/@transitions='yes'">
989      <tr class="titlerow">      <div class="block testing">
990        <td class="titlecell">        <a name="testing" />
991          Testing status        <h2>testing migration</h2>
992      </td></tr>        <xsl:if test="$other/@transitions='yes'">
993    </xsl:if>          <xsl:variable name="translist">
994    <xsl:if test="$other/@transitions='yes'">            <xsl:for-each select="$other/transitions/transition">
995      <xsl:variable name="translist">              <xsl:value-of select="@name" />
996        <xsl:for-each select="$other/transitions/transition">              <xsl:if test="position() != last()"> <xsl:text> </xsl:text>
997          <xsl:value-of select="@name" />              </xsl:if>
998          <xsl:if test="position() != last()">            </xsl:for-each>
999            <xsl:text> </xsl:text>          </xsl:variable>
1000          </xsl:if>          <xsl:variable name="transno"
1001        </xsl:for-each>                        select="count($other/transitions/transition)" />
1002      </xsl:variable>          <div class="warning">
     <xsl:variable name="transno" select="count($other/transitions/transition)" />  
     <tr class="normalrow">  
       <td class="contentcell2" style="text-align: left">  
         <ul>  
1003            <!-- XXX unappropriate <ul>, just to make the text looks like other            <!-- XXX unappropriate <ul>, just to make the text looks like other
1004              boxes, should be fixed on the CSS side (getting rid of <ul>) -->                 boxes, should be fixed on the CSS side (getting rid of <ul>) -->
1005                <li>This package is part of <em><xsl:value-of select="$transno" />            <p>This package is part of <em><xsl:value-of select="$transno" /> ongoing
1006                    ongoing testing transition<xsl:if test="$transno != '1'">s</xsl:if>                testing transition<xsl:if test="$transno != '1'">s</xsl:if></em>
1007                  </em> (namely: <tt><xsl:value-of select="$translist" /></tt>). For              (namely: <tt><xsl:value-of select="$translist" /></tt>). For
1008                  more information see the              more information see the
1009                  <a href="http://ftp-master.debian.org/transitions.yaml">transition              <a href="http://ftp-master.debian.org/transitions.yaml">transition
1010                    status file</a>.<br />                status file</a>.<br />
1011                  <em>Uploads to unstable will be rejected</em> while transitions are              <em>Uploads to unstable will be rejected</em> while
1012                  ongoing; you might want to upload to experimental in the              transitions are ongoing; you might want to upload to
1013                  meantime, or contact <tt><a href="mailto:debian-release@lists.debian.org">debian-release</a></tt>              experimental in the meantime, or
1014                  if an upload is really necessary.              contact <tt><a href="mailto:debian-release@lists.debian.org">debian-release</a></tt>
1015                </li>              if an upload is really necessary.
1016              </ul>            </p>
1017            </td>          </div>
         </tr>  
1018        </xsl:if>        </xsl:if>
1019        <xsl:if test="$hasexcuse">        <xsl:if test="$hasexcuse">
1020          <tr class="normalrow">          <a title="reasons why the package is not moving to testing"
1021            <td class="contentcell2" style="text-align: left">             href="http://qa.debian.org/excuses.php?package={$package}">excuses</a>:
1022              <a title="reasons why the package is not moving to testing"          <ul class="testing-excuses">
1023                href="http://qa.debian.org/excuses.php?package={$package}">Excuses</a>:            <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
1024              <ul class="testing-excuses">              <xsl:call-template name="outputitem"/>
1025                <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">            </xsl:for-each>
1026                  <xsl:call-template name="outputitem"/>          </ul>
1027                </xsl:for-each>        </xsl:if>
1028              </ul>      </div>
1029            </td>    </xsl:if>
1030          </tr>  </xsl:template>
       </xsl:if>  
     </xsl:template>  
   
     <xsl:template name="static-info">  
       <xsl:call-template name="output-static">  
         <xsl:with-param name="static" select="$static" />  
       </xsl:call-template>  
     </xsl:template>  
1031    
1032      <xsl:template name="latest-news">  <xsl:template name="static-info">
1033        <xsl:call-template name="output-news">    <xsl:call-template name="output-static">
1034          <xsl:with-param name="news" select="$news" />      <xsl:with-param name="static" select="$static" />
1035        </xsl:call-template>    </xsl:call-template>
1036      </xsl:template>  </xsl:template>
1037    
1038      <xsl:variable name="static">  <xsl:template name="latest-news">
1039        <xsl:if test="$hasnews">    <xsl:call-template name="output-news">
1040          <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">      <xsl:with-param name="news" select="$news" />
1041            <xsl:call-template name="outputitem"/>    </xsl:call-template>
1042          </xsl:for-each>  </xsl:template>
       </xsl:if>  
     </xsl:variable>  
   
     <xsl:variable name="news">  
       <xsl:if test="$hasnews">  
         <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">  
           <xsl:call-template name="outputitem"/>  
         </xsl:for-each>  
       </xsl:if>  
     </xsl:variable>  
   
     <!-- All the work is done in a single template -->  
     <xsl:template match="source">  
   
       <!-- Start of html -->  
       <html>  
         <head>  
           <meta name="ROBOTS" content="NOFOLLOW"/>  
           <link type="text/css" title="User selected" rel="stylesheet" href="../common/default.css"/>  
           <link type="text/css" title="Official" rel="alternate stylesheet" href="../common/revamp.css"/>  
           <link type="text/css" title="Legacy PTS" rel="alternate stylesheet" href="../common/pts.css"/>  
           <link type="text/css" title="Compact rendering" rel="alternate stylesheet" href="../common/compact.css"/>  
           <script type="text/javascript" src="../common/pts.js"></script>  
           <xsl:if test="count($news)>0 and string($news)!=''">  
             <link rel="alternate" type="application/rss+xml" title="RSS"  
               href="{$package}/news.rss20.xml" />  
           </xsl:if>  
           <title>Overview of <xsl:value-of select="$package"/> source package</title>  
         </head>  
         <body onload="javascript:onLoad();">  
   
           <div id="quickforms" style="float: right;">  
             <form method="get" action="/common/index.html">  
               <p><span title="Jump to package">Go:</span>  
                 <input type="text" name="src" value=""/></p>  
             </form>  
             <form id="csspref-form" method="get" action="/common/set-csspref.php">  
               <p>Switch style: <select name="csspref" onchange="javascript:onChangeStyle();">  
                   <option value="revamp.css">Default</option>  
                   <option value="compact.css">Compact</option>  
                   <option value="pts.css">Legacy</option>  
               </select></p>  
             </form>  
1043    
1044            </div>  <xsl:variable name="static">
1045            <h1>Overview of    <xsl:if test="$hasnews">
1046              <xsl:element name="a">      <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
1047                <xsl:attribute name="href">        <xsl:call-template name="outputitem"/>
1048                  <xsl:text>http://packages.debian.org/src:</xsl:text>      </xsl:for-each>
1049                  <xsl:value-of select="$package"/>    </xsl:if>
1050                </xsl:attribute>  </xsl:variable>
1051                <xsl:value-of select="$package"/>  
1052              </xsl:element>  <xsl:variable name="news">
1053              source package</h1>    <xsl:if test="$hasnews">
1054        <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
1055            <div id="body">        <xsl:call-template name="outputitem"/>
1056              <xsl:choose>      </xsl:for-each>
1057                <xsl:when test="$removed='yes'">    </xsl:if>
1058                  <!-- REMOVED PACKAGE -->  </xsl:variable>
1059                  <p>This package is not part of any Debian distribution. Thus you won't  
1060                    find much information here. The package is either very new and hasn't  <!-- All the work is done in a single template -->
1061                    appeared on mirrors yet, or it's an old package that eventually got removed.  <xsl:template match="source">
1062                    The old news are kept for historic purpose only.</p>  
1063      <!-- Start of html -->
1064                  <table class="righttable">    <html>
1065                    <xsl:call-template name="static-info" />      <head>
1066                    <xsl:call-template name="latest-news" />        <meta name="ROBOTS" content="NOFOLLOW"/>
1067                  </table>        <link type="text/css" title="User selected" rel="stylesheet" href="../common/default.css"/>
1068          <link type="text/css" title="Official" rel="alternate stylesheet" href="../common/revamp.css"/>
1069                  <!-- END REMOVED PACKAGE -->        <link type="text/css" title="Legacy PTS" rel="alternate stylesheet" href="../common/pts.css"/>
1070                </xsl:when>        <link type="text/css" title="Compact rendering" rel="alternate stylesheet" href="../common/compact.css"/>
1071                <xsl:otherwise>        <script type="text/javascript" src="../common/pts.js"></script>
1072                  <!-- NON REMOVED PACKAGE -->        <xsl:if test="count($news)>0 and string($news)!=''">
1073            <link rel="alternate" type="application/rss+xml" title="RSS"
1074                  <table class="containertable">                href="{$package}/news.rss20.xml" />
1075                    <tr class="containerrow" valign="top">        </xsl:if>
1076                      <td class="containercell">        <title>Debian Package Tracking System -
1077                        <!-- LEFT SIDE -->          <xsl:value-of select="$package"/></title>
1078                        <table class="lefttable">      </head>
1079                          <xsl:call-template name="general-information" />      <body onload="javascript:onLoad();">
1080                          <xsl:call-template name="available-versions" />        <div class="quickform" style="float: right;">
1081                        </table>          <form title="jump to the PTS page of another source package"
1082                        <table class="lefttable">                method="get" action="/common/index.html">
1083                          <xsl:call-template name="package-files" />            <p>
1084                          <xsl:call-template name="binary-packages" />              <input type="text" size="14" name="src" value=""/>
1085                        </table>              <input type="submit" value="jump to" />
1086                        <!-- END LEFT SIDE -->            </p>
1087                        </td><td class="containercell">          </form>
1088                        <!-- RIGHT SIDE -->        </div>
1089                        <table class="righttable">  
1090                          <xsl:call-template name="todo-list" />        <h1>
1091                          <xsl:call-template name="problems" />          <xsl:value-of select="$package"/><br />
1092                        </table>          <small>source package</small>
1093                        <table class="righttable">        </h1>
1094                          <xsl:call-template name="testing-status" />  
1095                          <xsl:call-template name="static-info" />        <div id="body">
1096                          <xsl:call-template name="latest-news" />          <xsl:choose>
1097                        </table>            <xsl:when test="$removed='yes'">
1098                        <!-- END RIGHT SIDE -->              <div class="block removed">
1099                        </td><td class="containercell">                <p>This package is not part of any Debian
1100                        <table class="lefttable">                  distribution. Thus you won't find much information
1101                          <xsl:call-template name="bugs-count" />                  here. The package is either very new and hasn't
1102                          <xsl:call-template name="pts-subscription" />                  appeared on mirrors yet, or it's an old package that
1103                        </table>                  eventually got removed.  The old news are kept for
1104                        <table class="lefttable">                  historic purpose only.</p>
1105                          <xsl:call-template name="other-links" />                <xsl:call-template name="static-info" />
1106                        </table>                <xsl:call-template name="latest-news" />
                       <table class="lefttable" id="ubuntubox">  
                         <xsl:call-template name="ubuntu" />  
                       </table>  
                   </td></tr>  
                 </table>  
   
                 <!-- END NON REMOVED PACKAGE -->  
               </xsl:otherwise>  
             </xsl:choose>  
   
             <hr/>  
             <div class="footer">  
               <table width="100%">  
                 <tr>  
                   <td>  
                     <p>  
                       <em><a href="http://www.debian.org">Debian</a> Package  
                         Tracking System</em> - Copyright 2002-2008 Raphaël  
                       Hertzog and others.<br/> Report problems to the  
                       <a href="http://bugs.debian.org/qa.debian.org"><tt>qa.debian.org</tt>  
                         pseudopackage</a> in the <a href="http://bugs.debian.org">Debian  
                         <acronym title="Bug Tracking System">BTS</acronym></a>.<br/>  
                       Last modified: <xsl:value-of select="$date"/>.  
                     </p>  
                   </td>  
                   <td>  
                     <a href="http://validator.w3.org/check?uri=referer"><img  
                         src="http://www.w3.org/Icons/valid-xhtml10-blue"  
                         alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>  
                   </td>  
                 </tr>  
               </table>  
1107              </div>              </div>
1108            </div>            </xsl:when>
1109          </body>            <xsl:otherwise>       <!-- non removed package -->
1110        </html>              <div class="left maincol">
1111      </xsl:template>                <xsl:call-template name="general-information" />
1112                  <xsl:call-template name="available-versions" />
1113                  <xsl:call-template name="binary-packages" />
1114                </div>
1115                <div class="center maincol">
1116                  <xsl:call-template name="todo-list" />
1117                  <xsl:call-template name="problems" />
1118                  <xsl:call-template name="testing-status" />
1119                  <xsl:call-template name="static-info" />
1120                  <xsl:call-template name="latest-news" />
1121                </div>
1122                <div class="right maincol">
1123                  <xsl:call-template name="bugs-count" />
1124                  <xsl:call-template name="other-links" />
1125                  <xsl:call-template name="ubuntu" />
1126                </div>
1127              </xsl:otherwise>
1128            </xsl:choose>
1129    
1130            <hr/>
1131            <div class="footer">
1132              <table width="100%">
1133                <tr>
1134                  <td>
1135                  <!--
1136                    <div class="quickform">
1137                      <form id="csspref-form" method="get"
1138                            action="/common/set-csspref.php">
1139                        <p>
1140                          change skin:
1141                          <select name="csspref" onchange="javascript:onChangeStyle();">
1142                            <option value="revamp.css">default</option>
1143                            <option value="compact.css">compact</option>
1144                            <option value="pts.css">legacy</option>
1145                          </select>
1146                        </p>
1147                      </form>
1148                    </div>
1149                  -->
1150                    <div class="quickform">
1151                      <xsl:call-template name="pts-subscription" />
1152                    </div>
1153                  </td>
1154                  <td>
1155                    <p>
1156                      <em><a href="http://www.debian.org">Debian</a>
1157                        Package Tracking System</em> - Copyright ©
1158                        2002-2009 Raphaël Hertzog, Stefano Zacchiroli and
1159                        others.<br/> Report problems to the
1160                      <a href="http://bugs.debian.org/qa.debian.org"><tt>qa.debian.org</tt>
1161                        pseudopackage</a> in the <a href="http://bugs.debian.org">Debian
1162                        <acronym title="Bug Tracking System">BTS</acronym></a>.<br/>
1163                      Last modified: <xsl:value-of select="$date"/>.
1164                    </p>
1165                  </td>
1166                  <td>
1167                    <a href="http://validator.w3.org/check?uri=referer">
1168                      <img
1169                         src="http://www.w3.org/Icons/valid-xhtml10-blue"
1170                         alt="Valid XHTML 1.0 Strict" height="31" width="88" />
1171                    </a>
1172                  </td>
1173                </tr>
1174              </table>
1175            </div>
1176          </div>
1177        </body>
1178      </html>
1179    </xsl:template>
1180    
1181  </xsl:stylesheet>  </xsl:stylesheet>

Legend:
Removed from v.2058  
changed lines
  Added in v.2483

  ViewVC Help
Powered by ViewVC 1.1.5