/[qa]/trunk/pts/www/xsl/pts.xsl
ViewVC logotype

Contents of /trunk/pts/www/xsl/pts.xsl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2713 - (hide annotations) (download) (as text)
Tue Feb 14 07:49:35 2012 UTC (16 months ago) by pabs
File MIME type: application/xml
File size: 48263 byte(s)
Fix some issues with the lintian link (Closes: #545785)
1 jeroen 1170 <?xml version="1.0" encoding="utf-8" ?>
2 hertzog 351
3     <!--
4 hertzog 2520 # Copyright © 2002-2011 Raphaël Hertzog and others
5 zack 2228 # Copyright © 2007-2009 Stefano Zacchiroli
6 hertzog 351 # This file is distributed under the terms of the General Public License
7     # version 2 or (at your option) any later version.
8     -->
9    
10 zack 1957 <xsl:stylesheet
11     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
12     xmlns="http://www.w3.org/1999/xhtml"
13 myon 2499 xmlns:str="http://exslt.org/strings"
14 zack 1957 version="1.0">
15 hertzog 347
16 zack 1957 <xsl:output
17     method="xml"
18     encoding="UTF-8"
19     omit-xml-declaration="yes"
20     doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
21     doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
22     indent="yes" />
23    
24 zack 1955 <xsl:include href="pts-issues.xsl" />
25    
26 hertzog 347 <xsl:param name="package"/>
27     <xsl:param name="dir"/>
28     <xsl:param name="date"/>
29 jeroen 1021 <xsl:param name="hasoldstable" select="''"/>
30 hertzog 347 <xsl:param name="hasstable" select="''"/>
31     <xsl:param name="hastesting" select="''"/>
32     <xsl:param name="hasunstable" select="''"/>
33     <xsl:param name="hasexperimental" select="''"/>
34 zack 1933 <xsl:param name="hasmentors" select="''"/>
35 hertzog 347 <xsl:param name="hasother" select="''"/>
36 zack 1953 <xsl:param name="hasstable-proposed-updates" select="''"/>
37     <xsl:param name="hastesting-proposed-updates" select="''"/>
38 zack 2053 <xsl:param name="hassecurity-oldstable" select="''"/>
39     <xsl:param name="hassecurity-stable" select="''"/>
40     <xsl:param name="hassecurity-testing" select="''"/>
41 myon 2501 <xsl:param name="hasoldstable-updates" select="''"/>
42     <xsl:param name="hasstable-updates" select="''"/>
43 hertzog 2520 <xsl:param name="hasoldstable-backports" select="''"/>
44     <xsl:param name="hasstable-backports" select="''"/>
45 hertzog 357 <xsl:param name="hasnews" select="''"/>
46     <xsl:param name="hasexcuse" select="''"/>
47 hertzog 347
48 zack 1773 <xsl:variable name="other"
49     select="document(concat('../base/', $dir, '/other.xml'))/other"/>
50     <xsl:variable name="low-nmu-emails"
51     select="document('../base/low_threshold_nmu.emails.xml')/emails"/>
52 zack 2249 <xsl:variable name="mostrecentsuite">
53     <!-- name of the most recent suite in which the package is available
54     -->
55     <xsl:choose>
56     <xsl:when test="$hasexperimental">
57     <xsl:text>experimental</xsl:text>
58     </xsl:when>
59     <xsl:when test="$hasunstable">
60     <xsl:text>unstable</xsl:text>
61     </xsl:when>
62     <xsl:when test="$hastesting">
63     <xsl:text>testing</xsl:text>
64     </xsl:when>
65     <xsl:when test="$hasstable">
66     <xsl:text>stable</xsl:text>
67     </xsl:when>
68     <xsl:otherwise>
69     <xsl:text />
70     </xsl:otherwise>
71     </xsl:choose>
72     </xsl:variable>
73     <xsl:variable name="pooldir">
74 zack 2250 <xsl:if test="$mostrecentsuite != ''">
75     <xsl:value-of
76     select="document(concat('../base/', $dir, '/',
77     $mostrecentsuite, '.xml'))/source/directory" />
78     </xsl:if>
79 zack 2249 </xsl:variable>
80 hertzog 347
81     <!-- Those variables controls the todo and problem item concerning
82     standards-version not being up to date -->
83 hertzog 2524 <xsl:variable name="lastsv" select="'3.9.2'"/>
84 hertzog 347 <xsl:variable name="lastmajorsv" select="'3.'"/>
85    
86 zack 1934 <!-- lintian summary -->
87     <xsl:variable name="lin_errs" select="$other/lintian/@errors" />
88     <xsl:variable name="lin_warns" select="$other/lintian/@warnings" />
89    
90 pabs 2669 <!-- buildd log check summary -->
91     <xsl:variable name="logcheck_errs" select="$other/logcheck/@errors" />
92     <xsl:variable name="logcheck_warns" select="$other/logcheck/@warnings" />
93    
94 hertzog 347 <!-- Named templates aka functions -->
95 zack 1927
96     <xsl:template name="mk_lintian_url">
97     <!-- convert maintainer/name to follow lintian.debian.org convention -->
98     <xsl:variable name="lintian_pattern" select="concat('àáèéëêòöøîìùñ~/()&#34; ', &quot;'&quot;)"/>
99 zack 1929 <xsl:variable name="lintian_email" select="translate(maintainer/email, $lintian_pattern, '_____________________')"/>
100 zack 1927
101 pabs 2713 <xsl:choose>
102     <xsl:when test="$lin_errs + $lin_warns > 0">
103     <xsl:text>http://lintian.debian.org/maintainer/</xsl:text>
104     </xsl:when>
105     <xsl:otherwise>
106     <xsl:text>http://lintian.debian.org/full/</xsl:text>
107     </xsl:otherwise>
108     </xsl:choose>
109 zack 1927 <xsl:value-of select="$lintian_email" />
110     <xsl:text>.html#</xsl:text>
111     <xsl:value-of select="$package" />
112     </xsl:template>
113    
114 pabs 2669 <xsl:template name="mk_logcheck_url">
115     <xsl:text>http://buildd.debian.org/~brlink/packages/</xsl:text>
116     <xsl:value-of select="substring($package,1,1)"/>
117     <xsl:text>/</xsl:text>
118     <xsl:value-of select="$package" />
119     <xsl:text>.html</xsl:text>
120     </xsl:template>
121    
122 geissert 2480 <xsl:variable name="mirror">http://cdn.debian.net/debian</xsl:variable>
123 myon 2499 <xsl:variable name="security-mirror">http://security.debian.org/debian-security</xsl:variable>
124 hertzog 2520 <xsl:variable name="backports-mirror">http://backports.debian.org/debian-backports</xsl:variable>
125 hertzog 347
126     <xsl:template name="outputitem">
127     <xsl:choose>
128     <xsl:when test="@url">
129     <li><xsl:if test="@date">
130     <xsl:text>[</xsl:text>
131     <xsl:value-of select="@date"/>
132     <xsl:text>] </xsl:text>
133 jeroen 929 </xsl:if><a href="{@url}">
134     <xsl:value-of select="text()"/></a><xsl:if test="@from">
135     <xsl:text> (</xsl:text>
136     <xsl:value-of select="@from"/>
137     <xsl:text>)</xsl:text></xsl:if></li>
138 hertzog 347 </xsl:when>
139 zack 2228 <xsl:when test="@type='raw'">
140     <li>
141     <xsl:copy-of select="node()" />
142     </li>
143     </xsl:when>
144 hertzog 347 <xsl:otherwise>
145     <li><xsl:if test="@date">
146     <xsl:text>[</xsl:text>
147     <xsl:value-of select="@date"/>
148     <xsl:text>] </xsl:text>
149     </xsl:if><xsl:value-of select="text()"/></li>
150     </xsl:otherwise>
151     </xsl:choose>
152     </xsl:template>
153    
154 jeroen 1170 <!-- Convert + in %2b for URL escaping. Should actually first also do
155     other-to-%xx, especially % to %25... Fortunately, that's rare -->
156 hertzog 530 <xsl:template name="escape-name">
157     <xsl:param name="text"/>
158     <xsl:if test="contains($text,'+')">
159     <xsl:value-of select="substring-before($text,'+')"/>
160     <xsl:text>%2b</xsl:text>
161     <xsl:call-template name="escape-name">
162     <xsl:with-param name="text"><xsl:value-of select="substring-after($text,'+')"/></xsl:with-param>
163     </xsl:call-template>
164     </xsl:if>
165     <xsl:if test="not(contains($text,'+'))">
166     <xsl:value-of select="$text"/>
167     </xsl:if>
168     </xsl:template>
169    
170 zack 1819 <xsl:variable name="escaped-package">
171     <xsl:call-template name="escape-name">
172     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
173     </xsl:call-template>
174     </xsl:variable>
175    
176 jeroen 1030 <!-- Strip epoch -->
177     <xsl:template name="strip-epoch">
178     <xsl:param name="version"/>
179     <xsl:if test="contains($version,':')">
180     <xsl:value-of select="substring-after($version,':')"/>
181     </xsl:if>
182     <xsl:if test="not(contains($version,':'))">
183     <xsl:value-of select="$version"/>
184     </xsl:if>
185     </xsl:template>
186 hertzog 530
187 hertzog 1412 <xsl:template name="add-vcs-info">
188     <xsl:if test="repository">
189 zack 2248 <dt title="Version Control System">VCS</dt>
190 zack 2232 <dd>
191     <xsl:if test="repository/vcs[@kind!='browser']">
192     <xsl:for-each select="repository/vcs[@kind!='browser']">
193     <xsl:sort select="@kind" />
194     <a title="raw {@kind} repository" href="{@url}">
195     <xsl:value-of select="@kind" />
196     </a>
197     <xsl:if test="position()!=last()"><xsl:text>, </xsl:text></xsl:if>
198     </xsl:for-each>
199     </xsl:if>
200     <xsl:if test="repository/vcs[@kind='browser']">
201     <xsl:text> (</xsl:text>
202     <a title="browse the repository"
203     href="{repository/vcs[@kind='browser']/@url}">browse</a>
204 zack 1960 <xsl:text>)</xsl:text>
205 zack 2232 </xsl:if>
206     </dd>
207 hertzog 1412 </xsl:if>
208     </xsl:template>
209 jeroen 1030
210 zack 1748 <xsl:template name="add-maintenance-info">
211 zack 1773 <xsl:param name="email" />
212 zack 1748 <xsl:variable name="dm">
213     <xsl:if test="dm-upload-allowed and string(dm-upload-allowed)='yes'">
214     <xsl:text>true</xsl:text>
215     </xsl:if>
216     </xsl:variable>
217 zack 1750 <xsl:variable name="lownmu">
218 zack 1773 <xsl:if test="$low-nmu-emails/email[text()=$email]">
219 zack 1750 <xsl:text>true</xsl:text>
220     </xsl:if>
221     </xsl:variable>
222 zack 1748
223 zack 1750 <xsl:if test="string($dm)!='' or string($lownmu)!=''">
224 zack 2232 <div class="maint-markers">
225     <xsl:if test="string($dm)!=''">
226     <span class="dm-tag">
227     <a href="http://www.debian.org/vote/2007/vote_003">
228     <acronym title="Debian Maintainer Upload Allowed: this package can be uploaded by Debian Maintainers">DMUA</acronym>
229     </a>
230     </span>
231     </xsl:if>
232     <xsl:if test="string($lownmu)!=''">
233     <xsl:if test="string($dm)!=''">
234     <xsl:text>, </xsl:text>
235     </xsl:if>
236     <span class="lownmu-tag">
237     <a href="http://wiki.debian.org/LowThresholdNmu">
238     <acronym title="maintainer agrees with Low Threshold NMU">LowNMU</acronym>
239     </a>
240     </span>
241     </xsl:if>
242     </div>
243 zack 1748 </xsl:if>
244     </xsl:template>
245    
246 zack 1745 <xsl:template name="output-news">
247     <xsl:param name="news" />
248    
249     <xsl:if test="count($news)>0 and string($news)!=''">
250 zack 2232 <div class="block news">
251     <a name="news" />
252     <h2>news <a class="feedlink" href="{$package}/news.rss20.xml">RSS</a></h2>
253     <ul id="news-list">
254     <xsl:copy-of select="$news" />
255     </ul>
256     </div>
257 zack 1745 </xsl:if>
258     </xsl:template>
259    
260     <xsl:template name="output-static">
261     <xsl:param name="static" />
262    
263     <xsl:if test="count($static)>0 and string($static)!=''">
264 zack 2232 <div class="block static">
265     <a name="static" />
266     <h2>static info</h2>
267     <ul>
268     <xsl:copy-of select="$static" />
269     </ul>
270     </div>
271 zack 1745 </xsl:if>
272     </xsl:template>
273    
274 zack 1765 <xsl:template name="maintainer-email">
275     <xsl:param name="email" />
276     <a class="email" href="mailto:{$email}">
277     <img alt="[email]" src="../common/email.png" title="email" />
278     </a>
279     </xsl:template>
280    
281 zack 1768 <xsl:template name="general-information">
282 zack 2232 <div class="block info">
283     <a name="general" />
284     <h2>general</h2>
285     <dl>
286     <dt>source</dt>
287     <dd>
288     <a href="http://packages.debian.org/src:{$package}">
289     <xsl:value-of select="$package" />
290     </a>
291     (<span id="priority" title="priority">
292     <small><xsl:value-of select="priority"/></small>
293     </span>,
294     <span id="section" title="section">
295     <small><xsl:value-of select="section"/></small>
296     </span>)
297     </dd>
298    
299     <dt>version</dt>
300     <dd>
301     <span id="latest_version"><xsl:value-of select="version"/></span>
302     </dd>
303    
304     <xsl:if test="@release!='unstable'">
305     <dt>distro</dt>
306     <dd><xsl:value-of select="@release"/></dd>
307     </xsl:if>
308    
309 zack 2247 <dt title="Maintainer and Uploaders">maint</dt>
310 zack 2232 <dd class="maintainer">
311     <xsl:element name="a">
312     <xsl:attribute name="href">
313     <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
314     <xsl:call-template name="escape-name">
315     <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>
316     </xsl:call-template>
317     </xsl:attribute>
318     <span class="name" title="maintainer">
319     <xsl:value-of select="maintainer/name"/>
320 zack 2051 </span>
321 zack 2232 </xsl:element>
322     <xsl:if test="uploaders">
323     <xsl:for-each select="uploaders/item">
324     <xsl:text>, </xsl:text>
325     <span class="uploader">
326     <small>
327     <xsl:element name="a">
328     <xsl:attribute name="href">
329     <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
330     <xsl:call-template name="escape-name">
331     <xsl:with-param name="text">
332     <xsl:value-of select="email"/>
333     </xsl:with-param>
334     </xsl:call-template>
335     </xsl:attribute>
336     <span class="name" title="uploader">
337     <xsl:value-of select="name"/>
338     </span>
339     </xsl:element>
340 zack 2247 <xsl:text> (u)</xsl:text>
341 zack 2232 </small>
342     </span>
343     </xsl:for-each>
344     </xsl:if>
345     <xsl:call-template name='add-maintenance-info'>
346     <xsl:with-param name="email" select="maintainer/email" />
347     </xsl:call-template>
348     </dd>
349    
350     <xsl:if test="architecture!='any' and architecture!='all'">
351     <dt>arch</dt>
352     <dd><xsl:value-of select="architecture"/></dd>
353     </xsl:if>
354    
355 zack 2248 <dt title="Standards-Version">std-ver</dt>
356 zack 2232 <dd>
357     <span id="standards_version">
358     <xsl:value-of select="standards-version"/>
359     </span>
360     </dd>
361    
362     <xsl:call-template name='add-vcs-info' />
363     </dl>
364     </div>
365 zack 1768 </xsl:template>
366    
367     <xsl:template name="bugs-count">
368 zack 2232 <div class="block bugs">
369     <a name="bugs" />
370 myon 2338 <h2>bugs</h2>
371 zack 2232 <dl>
372     <dt id="bugs_all">
373     all
374     <xsl:element name="a">
375 hertzog 1911 <xsl:attribute name="href">
376 glandium 2485 <xsl:text>http://qa.debian.org/data/bts/graphs/</xsl:text>
377     <xsl:value-of select="$dir"/>
378 zack 2232 <xsl:text>.png</xsl:text>
379 hertzog 1911 </xsl:attribute>
380 zack 2232 <xsl:attribute name="title">bug history graph</xsl:attribute>
381     <img alt="bug history graph" src="../common/bug-graph.png" />
382     </xsl:element>
383     </dt>
384     <dd>
385     <xsl:element name="a">
386 hertzog 1911 <xsl:attribute name="href">
387 zack 2232 <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=no&amp;src=</xsl:text>
388 zack 1939 <xsl:value-of select="$escaped-package" />
389 hertzog 1911 </xsl:attribute>
390 zack 2232 <xsl:if test="$hasother">
391     <span class="bugcount" title="all">
392     <xsl:value-of select="$other/bugs/@all"/>
393     </span>
394     </xsl:if>
395     </xsl:element>
396     <xsl:if test="$hasother and $other/bugs/@all_m">
397     (<xsl:element name="a">
398     <xsl:attribute name="href">
399     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=yes&amp;src=</xsl:text>
400     <xsl:value-of select="$escaped-package" />
401     </xsl:attribute>
402     <xsl:value-of select="$other/bugs/@all_m"/>
403     </xsl:element>)
404 zack 1768 </xsl:if>
405 zack 2232 </dd>
406 zack 2248 <dt id="bugs_rc" title="Release Critical">
407     <span class="indented">RC</span>
408 zack 2232 </dt>
409     <dd>
410     <xsl:element name="a">
411 hertzog 1911 <xsl:attribute name="href">
412     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
413 zack 1939 <xsl:value-of select="$escaped-package" />
414 zack 2232 <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>
415 hertzog 1911 </xsl:attribute>
416 zack 2232 <xsl:if test="$hasother">
417     <span class="bugcount" title="rc">
418     <xsl:value-of select="$other/bugs/@rc"/>
419     </span>
420     </xsl:if>
421     </xsl:element>
422     <xsl:if test="$hasother and $other/bugs/@rc_m">
423     (<xsl:element name="a">
424     <xsl:attribute name="href">
425     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
426     <xsl:value-of select="$escaped-package" />
427     <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>
428     </xsl:attribute>
429     <xsl:value-of select="$other/bugs/@rc_m"/>
430     </xsl:element>)
431 zack 1768 </xsl:if>
432 zack 2232 </dd>
433 zack 2248 <dt id="bugs_in" title="Important and Normal">
434     <span class="indented">I&amp;N</span>
435 zack 2232 </dt>
436     <dd>
437     <xsl:element name="a">
438 hertzog 1911 <xsl:attribute name="href">
439     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
440 zack 1939 <xsl:value-of select="$escaped-package" />
441 zack 2232 <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>
442 hertzog 1911 </xsl:attribute>
443 zack 2232 <xsl:if test="$hasother">
444     <span class="bugcount" title="in">
445     <xsl:value-of select="$other/bugs/@normal"/>
446     </span>
447     </xsl:if>
448     </xsl:element>
449     <xsl:if test="$hasother and $other/bugs/@normal_m">
450     (<xsl:element name="a">
451     <xsl:attribute name="href">
452     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
453     <xsl:value-of select="$escaped-package" />
454     <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>
455     </xsl:attribute>
456     <xsl:value-of select="$other/bugs/@normal_m"/>
457     </xsl:element>)
458 zack 1768 </xsl:if>
459 zack 2232 </dd>
460 zack 2248 <dt id="bugs_mw" title="Minor and Wishlist">
461     <span class="indented">M&amp;W</span>
462 zack 2232 </dt>
463     <dd>
464     <xsl:element name="a">
465 hertzog 1911 <xsl:attribute name="href">
466     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
467 zack 1939 <xsl:value-of select="$escaped-package" />
468 zack 2232 <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>
469 hertzog 1911 </xsl:attribute>
470 zack 2232 <xsl:if test="$hasother">
471     <span class="bugcount" title="mw">
472     <xsl:value-of select="$other/bugs/@wishlist"/>
473     </span>
474     </xsl:if>
475     </xsl:element>
476     <xsl:if test="$hasother and $other/bugs/@wishlist_m">
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;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>
482     </xsl:attribute>
483     <xsl:value-of select="$other/bugs/@wishlist_m"/>
484     </xsl:element>)
485     </xsl:if>
486     </dd>
487 zack 2248 <dt id="bugs_fp" title="Fixed and Pending">
488     <span class="indented">F&amp;P</span>
489 zack 2232 </dt>
490     <dd>
491 zack 1939 <xsl:element name="a">
492     <xsl:attribute name="href">
493     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
494     <xsl:value-of select="$escaped-package" />
495 zack 2232 <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=no</xsl:text>
496 zack 1939 </xsl:attribute>
497 zack 2232 <xsl:if test="$hasother">
498     <span class="bugcount" title="fp">
499     <xsl:value-of select="$other/bugs/@fixed"/>
500     </span>
501     </xsl:if>
502 zack 1939 </xsl:element>
503 zack 2232 <xsl:if test="$hasother and $other/bugs/@fixed_m">
504     (<xsl:element name="a">
505     <xsl:attribute name="href">
506     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
507     <xsl:value-of select="$escaped-package" />
508     <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=yes</xsl:text>
509     </xsl:attribute>
510     <xsl:value-of select="$other/bugs/@fixed_m"/>
511     </xsl:element>)
512     </xsl:if>
513     </dd>
514     <xsl:if test="$other/bugs/@gift &gt; 0">
515     <dt id="bugs_gift">
516     <span class="indented">
517     <a href="http://wiki.debian.org/qa.debian.org/GiftTag">gift</a>
518     </span>
519     </dt>
520     <dd>
521     <xsl:element name="a">
522     <xsl:attribute name="href">
523     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
524     <xsl:value-of select="$escaped-package" />
525     <xsl:text>&amp;users=debian-qa@lists.debian.org;tag=gift</xsl:text>
526     </xsl:attribute>
527     <span class="bugcount" title="gift">
528     <xsl:value-of select="$other/bugs/@gift" />
529     </span>
530     </xsl:element>
531     </dd>
532     </xsl:if>
533     </dl>
534     </div>
535 zack 1768 </xsl:template>
536 hertzog 347
537 zack 1768 <xsl:template name="pts-subscription">
538 zack 2232 <!-- <acronym title="Package Tracking System">PTS</acronym> subscription -->
539     <!-- <tr class="normalrow"> -->
540     <!-- <td class="labelcell">Subscribers count</td> -->
541     <!-- <td class="contentcell"><xsl:if test="$hasother"> -->
542     <!-- <xsl:value-of select="$other/pts/@count"/> -->
543     <!-- </xsl:if></td> -->
544     <!-- </tr> -->
545     <form method="post" action="/cgi-bin/pts.cgi">
546     <p>
547     <input type="hidden" name="package" value="{$package}"/>
548     subscribe to this package<br />
549     <input type="text" name="email" size="10" value="email"
550     onfocus="if(email.value=='your email'){{email.value=''}}"/>
551     <select name="what">
552     <option value="subscribe">sub</option>
553     <option value="unsubscribe">unsub</option>
554     <option value="advanced">opts</option>
555     </select>
556     <input type="submit" name="submit" value="go"/>
557     </p>
558     </form>
559 zack 1768 </xsl:template>
560 hertzog 347
561 zack 1768 <xsl:template name="binary-packages">
562 zack 2232 <div class="block binaries">
563     <a name="binaries" />
564     <h2>binaries</h2>
565     <ul>
566     <xsl:for-each select="binary/item">
567     <xsl:sort select="text()"/>
568     <xsl:variable name="pkg" select="text()"/>
569     <xsl:variable name="tooltip"
570     select="concat($pkg, ': ',
571     $other/descriptions/shortdesc[@package=$pkg])" />
572     <li class="binpkg">
573     <a class="binpkg" title="{$tooltip}"
574     href="http://packages.debian.org/{text()}">
575     <span class="binpkg"><xsl:value-of select="text()"/></span>
576     </a>
577     <span style="font-size: 70%">
578     (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:
579     <xsl:element name="a">
580     <xsl:attribute name="title">critical, grave and serious</xsl:attribute>
581     <xsl:attribute name="href">
582     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
583     <xsl:call-template name="escape-name">
584     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
585     </xsl:call-template>
586     <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>
587     </xsl:attribute>
588     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>
589     </xsl:element>,
590     <xsl:element name="a">
591     <xsl:attribute name="title">important and normal</xsl:attribute>
592     <xsl:attribute name="href">
593     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
594     <xsl:call-template name="escape-name">
595     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
596     </xsl:call-template>
597     <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>
598     </xsl:attribute>
599     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>
600     </xsl:element>,
601     <xsl:element name="a">
602     <xsl:attribute name="title">wishlist and minor</xsl:attribute>
603     <xsl:attribute name="href">
604     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
605     <xsl:call-template name="escape-name">
606     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
607     </xsl:call-template>
608     <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>
609     </xsl:attribute>
610     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>
611     </xsl:element>,
612     <xsl:element name="a">
613     <xsl:attribute name="title">pending and fixed</xsl:attribute>
614     <xsl:attribute name="href">
615     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
616     <xsl:call-template name="escape-name">
617     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
618     </xsl:call-template>
619     <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
620     </xsl:attribute>
621     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>
622     </xsl:element>)
623     </span>
624     </li>
625     </xsl:for-each>
626     </ul>
627     </div>
628 zack 1768 </xsl:template>
629 hertzog 347
630 zack 2058 <xsl:template name="output-version">
631     <xsl:param name="suite" select="''" />
632     <xsl:param name="link" select="'yes'" />
633     <xsl:variable name="version">
634     <span class="srcversion" title="{$suite}">
635     <xsl:value-of select="document(concat('../base/', $dir, '/', $suite,
636     '.xml'))/source/version"/>
637     </span>
638     </xsl:variable>
639     <xsl:choose>
640     <xsl:when test="$link='yes'">
641 zack 2232 <xsl:element name="a">
642     <xsl:attribute name="class">dsc</xsl:attribute>
643 myon 2499 <xsl:attribute name="href">
644     <xsl:choose>
645     <xsl:when test="starts-with($suite, 'security-')">
646     <xsl:value-of select="$security-mirror"/>
647     <xsl:text>/</xsl:text>
648     <xsl:value-of
649     select="document(concat('../base/', $dir, '/',
650     $suite, '.xml'))/source/directory" />
651     </xsl:when>
652 hertzog 2520 <xsl:when test="str:replace($suite, '-backports', '') != $suite">
653     <xsl:value-of select="$backports-mirror"/>
654     <xsl:text>/</xsl:text>
655     <xsl:value-of
656     select="document(concat('../base/', $dir, '/',
657     $suite, '.xml'))/source/directory" />
658     </xsl:when>
659 myon 2499 <xsl:otherwise>
660     <xsl:value-of select="$mirror"/>
661     <xsl:text>/</xsl:text>
662     <xsl:value-of select="$pooldir"/>
663     </xsl:otherwise>
664     </xsl:choose>
665     <xsl:text>/</xsl:text>
666     <xsl:value-of select="document(concat('../base/', $dir, '/',
667     $suite, '.xml'))/source/files/item[1]/filename"/>
668 zack 2232 </xsl:attribute>
669     <xsl:attribute name="title">.dsc, use dget on this link to retrieve source package</xsl:attribute>
670     <img src="../common/save.png" alt="save" />
671     </xsl:element>
672 myon 2499 <xsl:choose>
673     <xsl:when test="starts-with($suite, 'security-')">
674     <xsl:element name="a">
675     <xsl:attribute name="href">
676     <xsl:text>http://packages.debian.org/source/</xsl:text>
677     <xsl:value-of select="str:replace($suite, 'security-', '')" />
678     <xsl:text>/</xsl:text>
679     <xsl:copy-of select="$package" />
680     </xsl:attribute>
681     <xsl:copy-of select="$version" />
682     </xsl:element>
683     </xsl:when>
684 hertzog 2520 <xsl:when test="str:replace($suite, '-backports', '') != $suite">
685     <xsl:copy-of select="$version" />
686     </xsl:when>
687 myon 2499 <xsl:when test="str:replace($suite, '-updates', '') != $suite">
688     <xsl:copy-of select="$version" />
689     </xsl:when>
690     <xsl:otherwise>
691     <a href="http://packages.debian.org/source/{$suite}/{$package}">
692     <xsl:copy-of select="$version" />
693     </a>
694     </xsl:otherwise>
695     </xsl:choose>
696 zack 2058 </xsl:when>
697     <xsl:otherwise>
698     <xsl:copy-of select="$version" />
699     </xsl:otherwise>
700     </xsl:choose>
701     </xsl:template>
702    
703 zack 2232 <xsl:template name="more-info-marker">
704     <xsl:param name="href" />
705     <xsl:param name="title">more information are available on an external web page</xsl:param>
706     <a href="{$href}">
707     <img src="../common/external.png" title="{$title}" alt="..." />
708     </a>
709     </xsl:template>
710    
711 zack 1768 <xsl:template name="available-versions">
712 zack 2232 <div class="block versions">
713     <a name="versions" />
714     <h2>versions
715     <xsl:call-template name="more-info-marker">
716     <xsl:with-param name="href">
717     <xsl:text>http://qa.debian.org/madison.php?package=</xsl:text>
718     <xsl:value-of select="$package" />
719     </xsl:with-param>
720     <xsl:with-param name="title">more versions can be listed by madison</xsl:with-param>
721     </xsl:call-template>
722 pabs 2597 <xsl:text> </xsl:text>
723 pabs 2596 <xsl:call-template name="more-info-marker">
724     <xsl:with-param name="href">http://snapshot.debian.org/package/<xsl:value-of select="package" />/</xsl:with-param>
725     <xsl:with-param name="title">old versions available from snapshot.debian.org</xsl:with-param>
726     </xsl:call-template>
727 zack 2249 <a class="dsc" href="{$mirror}/{$pooldir}">
728     <img src="../common/folder.png" alt="pool" title="pool directory" />
729     </a>
730 zack 2232 </h2>
731 jeroen 1027
732 zack 2232 <dl>
733     <xsl:if test="$hasoldstable">
734 myon 2483 <dt title="old stable release">oldstable</dt>
735 zack 2232 <dd>
736     <xsl:call-template name="output-version">
737     <xsl:with-param name="suite">oldstable</xsl:with-param>
738     </xsl:call-template>
739     </dd>
740     </xsl:if>
741     <xsl:if test="$hassecurity-oldstable">
742 zack 2248 <dt title="security updates for the old stable release">old-sec</dt>
743 zack 2232 <dd>
744     <xsl:call-template name="output-version">
745     <xsl:with-param name="suite">security-oldstable</xsl:with-param>
746     </xsl:call-template>
747     </dd>
748     </xsl:if>
749 myon 2503 <xsl:if test="$hasoldstable-updates">
750 hertzog 2520 <dt title="updates for the old stable release">old-upd</dt>
751 myon 2499 <dd>
752     <xsl:call-template name="output-version">
753     <xsl:with-param name="suite">oldstable-updates</xsl:with-param>
754     </xsl:call-template>
755     </dd>
756     </xsl:if>
757 hertzog 2520 <xsl:if test="$hasoldstable-backports">
758     <dt title="backports for the old stable release">old-bpo</dt>
759     <dd>
760     <xsl:call-template name="output-version">
761     <xsl:with-param name="suite">oldstable-backports</xsl:with-param>
762     </xsl:call-template>
763     </dd>
764     </xsl:if>
765 zack 2232 <xsl:if test="$hasstable">
766     <dt>stable</dt>
767     <dd>
768     <xsl:call-template name="output-version">
769     <xsl:with-param name="suite">stable</xsl:with-param>
770     </xsl:call-template>
771     </dd>
772     </xsl:if>
773     <xsl:if test="$hassecurity-stable">
774 zack 2248 <dt title="security updates for the stable release">stable-sec</dt>
775 zack 2232 <dd>
776     <xsl:call-template name="output-version">
777     <xsl:with-param name="suite">security-stable</xsl:with-param>
778     </xsl:call-template>
779     </dd>
780     </xsl:if>
781 myon 2503 <xsl:if test="$hasstable-updates">
782 myon 2499 <dt title="updates for the stable release">stable-upd</dt>
783     <dd>
784     <xsl:call-template name="output-version">
785     <xsl:with-param name="suite">stable-updates</xsl:with-param>
786     </xsl:call-template>
787     </dd>
788     </xsl:if>
789 zack 2232 <xsl:if test="$hasstable-proposed-updates">
790 zack 2248 <dt title="stable proposed updates">s-p-u</dt>
791 zack 2232 <dd>
792     <xsl:call-template name="output-version">
793     <xsl:with-param name="suite">stable-proposed-updates</xsl:with-param>
794     </xsl:call-template>
795     </dd>
796     </xsl:if>
797 hertzog 2520 <xsl:if test="$hasstable-backports">
798     <dt title="backports for the stable release">stable-bpo</dt>
799     <dd>
800     <xsl:call-template name="output-version">
801     <xsl:with-param name="suite">stable-backports</xsl:with-param>
802     </xsl:call-template>
803     </dd>
804     </xsl:if>
805 zack 2232 <xsl:if test="$hastesting">
806     <dt>testing</dt>
807     <dd>
808     <xsl:call-template name="output-version">
809     <xsl:with-param name="suite">testing</xsl:with-param>
810     </xsl:call-template>
811     </dd>
812     </xsl:if>
813     <xsl:if test="$hassecurity-testing">
814 zack 2248 <dt title="security updates for the testing release">testing-sec</dt>
815 zack 2232 <dd>
816     <xsl:call-template name="output-version">
817     <xsl:with-param name="suite">security-testing</xsl:with-param>
818     </xsl:call-template>
819     </dd>
820     </xsl:if>
821     <xsl:if test="$hastesting-proposed-updates">
822 zack 2248 <dt title="testing proposed updates">t-p-u</dt>
823 zack 2232 <dd>
824     <xsl:call-template name="output-version">
825     <xsl:with-param name="suite">testing-proposed-updates</xsl:with-param>
826     </xsl:call-template>
827     </dd>
828     </xsl:if>
829     <xsl:if test="$hasunstable">
830     <dt>unstable</dt>
831     <dd>
832     <xsl:call-template name="output-version">
833     <xsl:with-param name="suite">unstable</xsl:with-param>
834     </xsl:call-template>
835     </dd>
836     </xsl:if>
837     <xsl:if test="$hasexperimental">
838 myon 2492 <dt title="experimental release">exp</dt>
839 zack 2232 <dd>
840     <xsl:call-template name="output-version">
841     <xsl:with-param name="suite">experimental</xsl:with-param>
842     </xsl:call-template>
843     </dd>
844     </xsl:if>
845     <xsl:if test="$hasother and $other/@new_version">
846 zack 2248 <dt title="waiting in the NEW queue for FTP master review">
847     <a href="http://ftp-master.debian.org/new.html">NEW</a>
848 zack 2232 </dt>
849     <dd>
850     <xsl:value-of select="$other/@new_version" />
851     </dd>
852     </xsl:if>
853     </dl>
854     </div>
855 zack 1768 </xsl:template>
856 hertzog 1090
857 hertzog 1887 <xsl:template name="ubuntu">
858     <xsl:if test="$other/@ubuntu='yes'">
859 zack 2232 <div class="block ubuntu">
860     <a name="ubuntu" />
861     <h2>ubuntu
862     <img src="../common/ubuntu.png" alt="ubuntu" />
863     <xsl:text> </xsl:text>
864     <xsl:call-template name="more-info-marker">
865     <xsl:with-param name="href">https://wiki.ubuntu.com/Ubuntu/ForDebianDevelopers</xsl:with-param>
866     <xsl:with-param name="title">Information about Ubuntu for Debian Developers</xsl:with-param>
867     </xsl:call-template>
868     </h2>
869 zack 1768 <ul>
870     <li>
871 zack 2232 version: <a href="{$other/ubuntu/@url}"><xsl:value-of select="$other/ubuntu/@version"/></a>
872 zack 1768 </li>
873 zack 2232 <xsl:if test="$other/ubuntu/patch">
874 zack 1768 <li>
875 zack 2232 <a href="{$other/ubuntu/patch/@url}">patches for
876     <xsl:value-of select="$other/ubuntu/patch/@version"/></a>
877 zack 1768 </li>
878     </xsl:if>
879 zack 2232 <xsl:if test="$other/ubuntu/bugs">
880 zack 2229 <li>
881 zack 2232 <a href="{$other/ubuntu/bugs/@url}"><xsl:value-of select="$other/ubuntu/bugs/@count"/>
882     bugs</a>
883 lucas 2393 <xsl:if test="$other/ubuntu/bugpatches">
884     (<a href="{$other/ubuntu/bugpatches/@url}"><xsl:value-of select="$other/ubuntu/bugpatches/@count"/>
885     patches</a>)
886     </xsl:if>
887 zack 2229 </li>
888     </xsl:if>
889 zack 1768 </ul>
890 zack 2232 </div>
891     </xsl:if>
892 zack 1768 </xsl:template>
893 hertzog 347
894 hertzog 2552 <xsl:template name="output-patch-tracker-version">
895     <xsl:param name="suite" select="''" />
896     <xsl:param name="link" select="'yes'" />
897     <xsl:variable name="version">
898     <span class="srcversion" title="{$suite}">
899     <xsl:value-of select="document(concat('../base/', $dir, '/', $suite,
900     '.xml'))/source/version"/>
901     </span>
902     </xsl:variable>
903     <xsl:choose>
904     <xsl:when test="$link='yes'">
905     <a href="http://patch-tracker.debian.org/package/{$package}/{$version}">
906     <xsl:copy-of select="$version" />
907     </a>
908     </xsl:when>
909     <xsl:otherwise>
910     <xsl:copy-of select="$version" />
911     </xsl:otherwise>
912     </xsl:choose>
913     </xsl:template>
914    
915     <xsl:template name="patch-tracker">
916     <div class="block patch-tracker">
917     <a name="patch-tracker" />
918     <h2>patch-tracker
919     <xsl:call-template name="more-info-marker">
920     <xsl:with-param name="href">http://patch-tracker.debian.org/package/<xsl:value-of select="package" /></xsl:with-param>
921     <xsl:with-param name="title">Link to patch tracker</xsl:with-param>
922     </xsl:call-template></h2>
923    
924     <dl>
925     <xsl:if test="$hasoldstable">
926     <dt title="old stable release">oldstable</dt>
927     <dd>
928     <xsl:call-template name="output-patch-tracker-version">
929     <xsl:with-param name="suite">oldstable</xsl:with-param>
930     </xsl:call-template>
931     </dd>
932     </xsl:if>
933     <xsl:if test="$hasstable">
934     <dt>stable</dt>
935     <dd>
936     <xsl:call-template name="output-patch-tracker-version">
937     <xsl:with-param name="suite">stable</xsl:with-param>
938     </xsl:call-template>
939     </dd>
940     </xsl:if>
941     <xsl:if test="$hastesting">
942     <dt>testing</dt>
943     <dd>
944     <xsl:call-template name="output-patch-tracker-version">
945     <xsl:with-param name="suite">testing</xsl:with-param>
946     </xsl:call-template>
947     </dd>
948     </xsl:if>
949     <xsl:if test="$hasunstable">
950     <dt>unstable</dt>
951     <dd>
952     <xsl:call-template name="output-patch-tracker-version">
953     <xsl:with-param name="suite">unstable</xsl:with-param>
954     </xsl:call-template>
955     </dd>
956     </xsl:if>
957     <xsl:if test="$hasexperimental">
958     <dt title="experimental release">exp</dt>
959     <dd>
960     <xsl:call-template name="output-patch-tracker-version">
961     <xsl:with-param name="suite">experimental</xsl:with-param>
962     </xsl:call-template>
963     </dd>
964     </xsl:if>
965     </dl>
966     </div>
967     </xsl:template>
968    
969 zack 2232 <xsl:template name="other-links">
970     <div class="block links">
971     <a name="links" />
972     <h2>links</h2>
973     <ul>
974     <xsl:if test="homepage">
975     <li><a title="upstream web homepage" href="{homepage}">homepage</a></li>
976     </xsl:if>
977     <li>
978     <xsl:element name="a">
979     <xsl:attribute name="href">
980     <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
981     <xsl:value-of select="directory"/>
982     <xsl:text>/current/changelog</xsl:text>
983     </xsl:attribute>
984     <xsl:text>changelog</xsl:text>
985     </xsl:element>
986     /
987     <xsl:element name="a">
988     <xsl:attribute name="href">
989     <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
990     <xsl:value-of select="directory"/>
991     <xsl:text>/current/copyright</xsl:text>
992     </xsl:attribute>
993     <xsl:text>copyright</xsl:text>
994     </xsl:element>
995     </li>
996     <xsl:if test="architecture!='all'">
997     <li>
998     <xsl:text>buildd: </xsl:text>
999 hertzog 2508 <a href="https://buildd.debian.org/status/package.php?p={$escaped-package}"
1000 zack 2232 title="buildd.debian.org build logs">logs</a>
1001     <xsl:text>, </xsl:text>
1002     <xsl:if test="$hasexperimental">
1003 zack 2342 <a href="https://buildd.debian.org/status/package.php?p={$escaped-package}&amp;suite=experimental"
1004     title="experimental build logs">exp</a>
1005 zack 2232 <xsl:text>, </xsl:text>
1006     </xsl:if>
1007     <a href="http://buildd.debian-ports.org/status/package.php?p={$escaped-package}"
1008 pabs 2712 title="build logs for unofficial ports">ports</a>
1009 zack 2232 </li>
1010     </xsl:if>
1011 pabs 2669 <xsl:if test="$other/@logcheck='yes'">
1012     <xsl:variable name="logcheck_url"><xsl:call-template name="mk_logcheck_url" /></xsl:variable>
1013     <li>
1014     <a title="report about issues spotted in buildd logs"
1015     href="{$logcheck_url}">build log checks</a>
1016     </li>
1017     </xsl:if>
1018 zack 2232 <xsl:if test="$hasother and $other/@piuparts='yes'">
1019     <li>
1020     <a title="report about errors found while stressing package installation"
1021     href="http://piuparts.debian.org/sid/source/{$hash}/{$package}.html">piuparts</a>
1022     </li>
1023     </xsl:if>
1024     <xsl:if test="($hasunstable and $other/debcheck/@unstable='yes')
1025     or ($hastesting and $other/debcheck/@testing='yes')
1026     or ($hasstable and $other/debcheck/@stable='yes')">
1027     <li>
1028     debcheck:
1029     <xsl:if test="$hasunstable">
1030     <xsl:text> </xsl:text>
1031     <a href="http://qa.debian.org/debcheck.php?dist=unstable&amp;package={$escaped-package}">unstable</a>
1032     </xsl:if>
1033     <xsl:if test="$hastesting">
1034     <xsl:text> </xsl:text>
1035     <a href="http://qa.debian.org/debcheck.php?dist=testing&amp;package={$escaped-package}">testing</a>
1036     </xsl:if>
1037     <xsl:if test="$hasstable">
1038     <xsl:text> </xsl:text>
1039     <a href="http://qa.debian.org/debcheck.php?dist=stable&amp;package={$escaped-package}">stable</a>
1040     </xsl:if>
1041     </li>
1042     </xsl:if>
1043     <xsl:if test="$other/@lintian='yes'">
1044     <xsl:variable name="lintian_url"><xsl:call-template name="mk_lintian_url" /></xsl:variable>
1045     <li>
1046     <a title="report about packaging issues spotted by lintian"
1047     href="{$lintian_url}">lintian</a>
1048 pabs 2713 <xsl:if test="$lin_errs + $lin_warns > 0">
1049     <xsl:text> </xsl:text>
1050     <small>
1051     (<span id="lintian_errors" title="errors"><xsl:value-of select="$lin_errs" /></span>,
1052     <span id="lintian_warnings" title="warnings"><xsl:value-of select="$lin_warns" /></span>)
1053     </small>
1054     </xsl:if>
1055 zack 2232 </li>
1056     </xsl:if>
1057     <li>
1058     <a title="package popularity"
1059 myon 2368 href="http://qa.debian.org/popcon.php?package={$escaped-package}">popcon</a>
1060 zack 2232 </li>
1061     <xsl:if test="$other/@svnbuildstat='yes'">
1062     <li>
1063     <a href="http://svnbuildstat.debian.net/packages/info/{$escaped-package}">Svnbuildstat</a>
1064     </li>
1065     </xsl:if>
1066     <xsl:if test="$other/i18n/@href">
1067     <li>
1068     <a title="translation status"
1069     href="{$other/i18n/@href}">l10n</a>
1070     <small>
1071     (<span title="completeness of Debian string translation">
1072     <xsl:value-of select="$other/i18n/@deb" />
1073     </span>,
1074     <span title="completeness of non-Debian string translation">
1075     <xsl:value-of select="$other/i18n/@nondeb" />
1076     </span>)
1077     </small>
1078     </li>
1079     </xsl:if>
1080 geissert 2422 <xsl:if test="$other/@fonts='yes'">
1081     <li>
1082     <a title="fonts review" href="{$other/fonts/@href}">fonts</a>
1083     </li>
1084     </xsl:if>
1085 pabs 2600 <li>
1086 hertzog 2674 <xsl:variable name="escaped-email">
1087     <xsl:call-template name="escape-name">
1088     <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>
1089     </xsl:call-template>
1090     </xsl:variable>
1091     <a title="edit all debtags" href="http://debtags.debian.net/rep/todo/maint/{$escaped-email}#{$escaped-package}">debtags</a>
1092 pabs 2600 </li>
1093 zack 2232 </ul>
1094     </div>
1095 zack 1768 </xsl:template>
1096 hertzog 347
1097 zack 1768 <xsl:template name="todo-list">
1098 hertzog 347 <xsl:variable name="todo">
1099 geissert 2278 <xsl:call-template name="issue-security" />
1100 zack 1955 <xsl:call-template name="issue-nmu" />
1101     <xsl:call-template name="issue-lintian" />
1102 pabs 2669 <xsl:call-template name="issue-logcheck" />
1103 zack 1955 <xsl:call-template name="issue-mentors-pending" />
1104     <xsl:call-template name="issue-comaintenance" />
1105     <xsl:call-template name="issue-outdate-stdver" />
1106     <xsl:call-template name="issue-new-upstream" />
1107     <xsl:call-template name="issue-patches" />
1108 zack 2230 <xsl:call-template name="issue-l10n" />
1109 hertzog 2675 <xsl:call-template name="issue-release-goals" />
1110 hertzog 347 <xsl:if test="$hasother">
1111     <xsl:for-each select="$other/todo/item">
1112 zack 1955 <xsl:call-template name="outputitem" />
1113 hertzog 347 </xsl:for-each>
1114     </xsl:if>
1115     </xsl:variable>
1116 zack 2232
1117 hertzog 372 <xsl:if test="count($todo)>0 and string($todo)!=''">
1118 zack 2232 <div class="block todo">
1119     <a name="todo" />
1120     <h2>todo</h2>
1121     <ul>
1122     <xsl:copy-of select="$todo" />
1123     </ul>
1124     </div>
1125 hertzog 347 </xsl:if>
1126 zack 1768 </xsl:template>
1127    
1128     <xsl:template name="problems">
1129 hertzog 347 <xsl:variable name="problems">
1130 zack 1955 <xsl:call-template name="issue-testing-excuses" />
1131 zack 2048 <xsl:call-template name="issue-piuparts" />
1132 zack 1955 <xsl:call-template name="issue-ancient-stdver" />
1133     <xsl:call-template name="issue-item-dead-package" />
1134     <xsl:call-template name="issue-item-override-disparity" />
1135     <xsl:call-template name="issue-item-help-bugs" />
1136     <xsl:call-template name="issue-item-wnpp" />
1137     <!-- <xsl:call-template name="issue-item-watch-failure" /> -->
1138     <xsl:call-template name="issue-item-dehs-failure" />
1139 hertzog 347 <xsl:if test="$hasother">
1140     <xsl:for-each select="$other/problems/item">
1141 zack 1768 <xsl:call-template name="outputitem"/>
1142 hertzog 347 </xsl:for-each>
1143     </xsl:if>
1144     </xsl:variable>
1145 zack 2232
1146 hertzog 372 <xsl:if test="count($problems)>0 and string($problems)!=''">
1147 zack 2232 <div class="block problems">
1148     <a name="problems" />
1149     <h2>problems</h2>
1150     <ul>
1151     <xsl:copy-of select="$problems" />
1152     </ul>
1153     </div>
1154 hertzog 347 </xsl:if>
1155 zack 1768 </xsl:template>
1156 hertzog 347
1157 zack 1768 <xsl:template name="testing-status">
1158 zack 1866 <xsl:if test="$hasexcuse or $other/@transitions='yes'">
1159 zack 2232 <div class="block testing">
1160     <a name="testing" />
1161     <h2>testing migration</h2>
1162     <xsl:if test="$other/@transitions='yes'">
1163     <div class="warning">
1164 hertzog 2700 <ul>
1165     <xsl:for-each select="$other/transitions/transition">
1166     <li>
1167     <xsl:choose>
1168     <xsl:when test="@status='planned'">
1169     This package will soon be part of the <a href="http://release.debian.org/transitions/html/{@name}.html"><xsl:value-of select="@name" /></a> transition. You might want to ensure that your package is ready for it.
1170     </xsl:when>
1171     <xsl:when test="@status='ongoing'">
1172     This package is part of the ongoing testing transition known as <a href="http://release.debian.org/transitions/html/{@name}.html"><xsl:value-of select="@name" /></a>.
1173     <xsl:if test="@reject!='yes'">
1174     Please avoid uploads unrelated to this transition, they would
1175     likely delay it and require supplementary work from the release
1176     managers. On the other hand, if your package has problems
1177     preventing it to migrate to testing, please fix them
1178     as soon as possible.
1179     </xsl:if>
1180     </xsl:when>
1181     <xsl:otherwise>
1182     </xsl:otherwise>
1183     </xsl:choose>
1184     You can probably find supplementary information in the
1185     <a href="http://lists.debian.org/debian-release/">debian-release
1186     archives</a> or in the corresponding
1187 hertzog 2703 <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?users=release.debian.org@packages.debian.org;tag=transition">release.debian.org
1188 hertzog 2700 bug</a>.
1189     <xsl:if test="@reject='yes'">
1190     <strong>Uploads to unstable will be rejected</strong> while
1191     the transition is ongoing; you might want to upload to
1192     experimental in the meantime, or
1193     contact <tt><a href="mailto:debian-release@lists.debian.org">debian-release</a></tt>
1194     if an upload is really necessary.
1195    
1196     </xsl:if>
1197     </li>
1198     </xsl:for-each>
1199     </ul>
1200 zack 2232 </div>
1201 zack 1955 </xsl:if>
1202     <xsl:if test="$hasexcuse">
1203 zack 2232 <a title="reasons why the package is not moving to testing"
1204 hertzog 2551 href="http://qa.debian.org/excuses.php?package={$escaped-package}">excuses</a>:
1205 zack 2232 <ul class="testing-excuses">
1206     <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
1207     <xsl:call-template name="outputitem"/>
1208     </xsl:for-each>
1209     </ul>
1210 zack 1955 </xsl:if>
1211 zack 2232 </div>
1212     </xsl:if>
1213     </xsl:template>
1214 zack 1768
1215 zack 2232 <xsl:template name="static-info">
1216     <xsl:call-template name="output-static">
1217     <xsl:with-param name="static" select="$static" />
1218     </xsl:call-template>
1219     </xsl:template>
1220 zack 1768
1221 zack 2232 <xsl:template name="latest-news">
1222     <xsl:call-template name="output-news">
1223     <xsl:with-param name="news" select="$news" />
1224     </xsl:call-template>
1225     </xsl:template>
1226 hertzog 347
1227 zack 2232 <xsl:variable name="static">
1228     <xsl:if test="$hasnews">
1229     <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
1230     <xsl:call-template name="outputitem"/>
1231     </xsl:for-each>
1232     </xsl:if>
1233     </xsl:variable>
1234 zack 1768
1235 zack 2232 <xsl:variable name="news">
1236     <xsl:if test="$hasnews">
1237     <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
1238     <xsl:call-template name="outputitem"/>
1239     </xsl:for-each>
1240     </xsl:if>
1241     </xsl:variable>
1242 zack 1768
1243 zack 2232 <!-- All the work is done in a single template -->
1244     <xsl:template match="source">
1245 zack 1768
1246 zack 2232 <!-- Start of html -->
1247     <html>
1248     <head>
1249     <meta name="ROBOTS" content="NOFOLLOW"/>
1250     <link type="text/css" title="User selected" rel="stylesheet" href="../common/default.css"/>
1251     <link type="text/css" title="Official" rel="alternate stylesheet" href="../common/revamp.css"/>
1252     <link type="text/css" title="Legacy PTS" rel="alternate stylesheet" href="../common/pts.css"/>
1253     <link type="text/css" title="Compact rendering" rel="alternate stylesheet" href="../common/compact.css"/>
1254     <script type="text/javascript" src="../common/pts.js"></script>
1255     <xsl:if test="count($news)>0 and string($news)!=''">
1256     <link rel="alternate" type="application/rss+xml" title="RSS"
1257 zack 1955 href="{$package}/news.rss20.xml" />
1258 zack 2232 </xsl:if>
1259     <title>Debian Package Tracking System -
1260     <xsl:value-of select="$package"/></title>
1261     </head>
1262     <body onload="javascript:onLoad();">
1263     <div class="quickform" style="float: right;">
1264     <form title="jump to the PTS page of another source package"
1265     method="get" action="/common/index.html">
1266     <p>
1267     <input type="text" size="14" name="src" value=""/>
1268     <input type="submit" value="jump to" />
1269     </p>
1270     </form>
1271     </div>
1272 zack 1768
1273 zack 2232 <h1>
1274     <xsl:value-of select="$package"/><br />
1275     <small>source package</small>
1276     </h1>
1277 zack 1768
1278 zack 2232 <div id="body">
1279     <xsl:choose>
1280     <xsl:when test="$removed='yes'">
1281     <div class="block removed">
1282     <p>This package is not part of any Debian
1283     distribution. Thus you won't find much information
1284     here. The package is either very new and hasn't
1285     appeared on mirrors yet, or it's an old package that
1286     eventually got removed. The old news are kept for
1287     historic purpose only.</p>
1288     <xsl:call-template name="static-info" />
1289     <xsl:call-template name="latest-news" />
1290 zack 1955 </div>
1291 zack 2232 </xsl:when>
1292     <xsl:otherwise> <!-- non removed package -->
1293     <div class="left maincol">
1294     <xsl:call-template name="general-information" />
1295     <xsl:call-template name="available-versions" />
1296     <xsl:call-template name="binary-packages" />
1297     </div>
1298     <div class="center maincol">
1299     <xsl:call-template name="todo-list" />
1300     <xsl:call-template name="problems" />
1301     <xsl:call-template name="testing-status" />
1302     <xsl:call-template name="static-info" />
1303     <xsl:call-template name="latest-news" />
1304     </div>
1305     <div class="right maincol">
1306     <xsl:call-template name="bugs-count" />
1307     <xsl:call-template name="other-links" />
1308     <xsl:call-template name="ubuntu" />
1309 hertzog 2552 <xsl:call-template name="patch-tracker" />
1310 zack 2232 </div>
1311     </xsl:otherwise>
1312     </xsl:choose>
1313 zack 1955
1314 zack 2232 <hr/>
1315     <div class="footer">
1316     <table width="100%">
1317     <tr>
1318     <td>
1319 zack 2335 <!--
1320 zack 2232 <div class="quickform">
1321     <form id="csspref-form" method="get"
1322     action="/common/set-csspref.php">
1323     <p>
1324     change skin:
1325     <select name="csspref" onchange="javascript:onChangeStyle();">
1326     <option value="revamp.css">default</option>
1327     <option value="compact.css">compact</option>
1328     <option value="pts.css">legacy</option>
1329     </select>
1330     </p>
1331     </form>
1332     </div>
1333 zack 2335 -->
1334 zack 2232 <div class="quickform">
1335     <xsl:call-template name="pts-subscription" />
1336     </div>
1337     </td>
1338     <td>
1339     <p>
1340     <em><a href="http://www.debian.org">Debian</a>
1341     Package Tracking System</em> - Copyright ©
1342     2002-2009 Raphaël Hertzog, Stefano Zacchiroli and
1343     others.<br/> Report problems to the
1344     <a href="http://bugs.debian.org/qa.debian.org"><tt>qa.debian.org</tt>
1345     pseudopackage</a> in the <a href="http://bugs.debian.org">Debian
1346     <acronym title="Bug Tracking System">BTS</acronym></a>.<br/>
1347 hertzog 2566 <a href="svn://svn.debian.org/svn/qa/trunk/pts">Checkout SVN repository</a> |
1348     <a href="http://anonscm.debian.org/viewvc/qa/trunk/pts/">Browse SVN repository</a><br/>
1349 zack 2232 Last modified: <xsl:value-of select="$date"/>.
1350     </p>
1351     </td>
1352     <td>
1353     <a href="http://validator.w3.org/check?uri=referer">
1354     <img
1355     src="http://www.w3.org/Icons/valid-xhtml10-blue"
1356     alt="Valid XHTML 1.0 Strict" height="31" width="88" />
1357     </a>
1358     </td>
1359     </tr>
1360     </table>
1361     </div>
1362     </div>
1363     </body>
1364     </html>
1365     </xsl:template>
1366    
1367 zack 1957 </xsl:stylesheet>

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.5