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

Legend:
Removed from v.2231  
changed lines
  Added in v.2232

  ViewVC Help
Powered by ViewVC 1.1.5