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