/[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 1951 - (hide annotations) (download) (as text)
Mon Aug 11 02:57:03 2008 UTC (4 years, 10 months ago) by zack
File MIME type: application/xml
File size: 52080 byte(s)
add tooltips on binary package names containing short package description
(Closes: #370087)
1 jeroen 1170 <?xml version="1.0" encoding="utf-8" ?>
2 hertzog 351
3     <!--
4 zack 1814 # Copyright 2002-2008 Raphaël Hertzog and others
5 zack 1820 # Copyright 2007-2008 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 hertzog 347 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
11    
12 hertzog 765 <xsl:output encoding="UTF-8" method="html"/>
13 hertzog 347
14     <xsl:param name="package"/>
15     <xsl:param name="dir"/>
16     <xsl:param name="date"/>
17 jeroen 1021 <xsl:param name="hasoldstable" select="''"/>
18 hertzog 347 <xsl:param name="hasstable" select="''"/>
19     <xsl:param name="hastesting" select="''"/>
20     <xsl:param name="hasunstable" select="''"/>
21     <xsl:param name="hasexperimental" select="''"/>
22 zack 1933 <xsl:param name="hasmentors" select="''"/>
23 hertzog 347 <xsl:param name="hasother" select="''"/>
24 hertzog 351 <xsl:param name="hass-p-u" select="''"/>
25     <xsl:param name="hast-p-u" select="''"/>
26 jeroen 1021 <xsl:param name="hasoldstable-security" select="''"/>
27 hertzog 351 <xsl:param name="hasstable-security" select="''"/>
28     <xsl:param name="hastesting-security" select="''"/>
29 hertzog 1090 <xsl:param name="hassecure-testing" select="''"/>
30     <xsl:param name="hasvolatile" select="''"/>
31 hertzog 357 <xsl:param name="hasnews" select="''"/>
32     <xsl:param name="hasexcuse" select="''"/>
33 hertzog 347
34 zack 1773 <xsl:variable name="other"
35     select="document(concat('../base/', $dir, '/other.xml'))/other"/>
36     <xsl:variable name="low-nmu-emails"
37     select="document('../base/low_threshold_nmu.emails.xml')/emails"/>
38 hertzog 347
39     <!-- Those variables controls the todo and problem item concerning
40     standards-version not being up to date -->
41 hertzog 1883 <xsl:variable name="lastsv" select="'3.8.0'"/>
42 hertzog 347 <xsl:variable name="lastmajorsv" select="'3.'"/>
43    
44 zack 1934 <!-- lintian summary -->
45     <xsl:variable name="lin_errs" select="$other/lintian/@errors" />
46     <xsl:variable name="lin_warns" select="$other/lintian/@warnings" />
47    
48 hertzog 347 <!-- Named templates aka functions -->
49 zack 1927
50     <xsl:template name="mk_lintian_url">
51     <!-- convert maintainer/name to follow lintian.debian.org convention -->
52     <xsl:variable name="lintian_pattern" select="concat('àáèéëêòöøîìùñ~/()&#34; ', &quot;'&quot;)"/>
53 zack 1929 <xsl:variable name="lintian_email" select="translate(maintainer/email, $lintian_pattern, '_____________________')"/>
54 zack 1927
55     <xsl:text>http://lintian.debian.org/reports/maintainer/</xsl:text>
56     <xsl:value-of select="$lintian_email" />
57     <xsl:text>.html#</xsl:text>
58     <xsl:value-of select="$package" />
59     </xsl:template>
60    
61 hertzog 347 <xsl:template name="mirror">
62 jeroen 1024 <xsl:text>http://ftp.debian.org/debian</xsl:text>
63 hertzog 347 </xsl:template>
64    
65     <xsl:template name="outputitem">
66     <xsl:choose>
67     <xsl:when test="@url">
68     <li><xsl:if test="@date">
69     <xsl:text>[</xsl:text>
70     <xsl:value-of select="@date"/>
71     <xsl:text>] </xsl:text>
72 jeroen 929 </xsl:if><a href="{@url}">
73     <xsl:value-of select="text()"/></a><xsl:if test="@from">
74     <xsl:text> (</xsl:text>
75     <xsl:value-of select="@from"/>
76     <xsl:text>)</xsl:text></xsl:if></li>
77 hertzog 347 </xsl:when>
78     <xsl:otherwise>
79     <li><xsl:if test="@date">
80     <xsl:text>[</xsl:text>
81     <xsl:value-of select="@date"/>
82     <xsl:text>] </xsl:text>
83     </xsl:if><xsl:value-of select="text()"/></li>
84     </xsl:otherwise>
85     </xsl:choose>
86     </xsl:template>
87    
88 jeroen 1170 <!-- Convert + in %2b for URL escaping. Should actually first also do
89     other-to-%xx, especially % to %25... Fortunately, that's rare -->
90 hertzog 530 <xsl:template name="escape-name">
91     <xsl:param name="text"/>
92     <xsl:if test="contains($text,'+')">
93     <xsl:value-of select="substring-before($text,'+')"/>
94     <xsl:text>%2b</xsl:text>
95     <xsl:call-template name="escape-name">
96     <xsl:with-param name="text"><xsl:value-of select="substring-after($text,'+')"/></xsl:with-param>
97     </xsl:call-template>
98     </xsl:if>
99     <xsl:if test="not(contains($text,'+'))">
100     <xsl:value-of select="$text"/>
101     </xsl:if>
102     </xsl:template>
103    
104 zack 1819 <xsl:variable name="escaped-package">
105     <xsl:call-template name="escape-name">
106     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
107     </xsl:call-template>
108     </xsl:variable>
109    
110 jeroen 1030 <!-- Strip epoch -->
111     <xsl:template name="strip-epoch">
112     <xsl:param name="version"/>
113     <xsl:if test="contains($version,':')">
114     <xsl:value-of select="substring-after($version,':')"/>
115     </xsl:if>
116     <xsl:if test="not(contains($version,':'))">
117     <xsl:value-of select="$version"/>
118     </xsl:if>
119     </xsl:template>
120 hertzog 530
121 hertzog 1412 <xsl:template name="add-vcs-info">
122     <xsl:if test="repository">
123     <tr>
124     <td class="labelcell">
125 filippo 1500 <xsl:text>Version Control</xsl:text>
126 hertzog 1412 </td>
127     <td class="contentcell">
128 filippo 1500 <xsl:if test="repository/vcs[@kind='browser']">
129     <a href="{repository/vcs[@kind='browser']/@url}">
130     <xsl:text>browser</xsl:text>
131     </a>
132     <br />
133     </xsl:if>
134     <xsl:if test="repository/vcs[@kind!='browser']">
135     <xsl:text>raw: </xsl:text>
136     <xsl:for-each select="repository/vcs[@kind!='browser']">
137     <xsl:sort select="@kind" />
138     <a href="{@url}">
139     <xsl:value-of select="@kind" />
140     </a>
141     <xsl:if test="position()!=last()">
142     <xsl:text>, </xsl:text>
143     </xsl:if>
144     </xsl:for-each>
145     </xsl:if>
146 hertzog 1412 </td>
147     </tr>
148     </xsl:if>
149     </xsl:template>
150 jeroen 1030
151 zack 1748 <xsl:template name="add-maintenance-info">
152 zack 1773 <xsl:param name="email" />
153 zack 1748 <xsl:variable name="dm">
154     <xsl:if test="dm-upload-allowed and string(dm-upload-allowed)='yes'">
155     <xsl:text>true</xsl:text>
156     </xsl:if>
157     </xsl:variable>
158 zack 1750 <xsl:variable name="lownmu">
159 zack 1773 <xsl:if test="$low-nmu-emails/email[text()=$email]">
160 zack 1750 <xsl:text>true</xsl:text>
161     </xsl:if>
162     </xsl:variable>
163 zack 1748
164 zack 1750 <xsl:if test="string($dm)!='' or string($lownmu)!=''">
165 zack 1748 <tr>
166     <td class="labelcell">
167     <xsl:text>Maintenance info</xsl:text>
168     </td>
169     <td class="contentcell">
170    
171     <xsl:if test="string($dm)!=''">
172     <span class="dm-tag">
173     <a href="http://www.debian.org/vote/2007/vote_003"><acronym title="Debian Maintainer Upload Allowed: can be uploaded by Debian Maintainers">DMUA</acronym></a>
174     </span>
175 zack 1799 <xsl:text> </xsl:text>
176 zack 1748 </xsl:if>
177    
178 zack 1750 <xsl:if test="string($lownmu)!=''">
179     <span class="lownmu-tag">
180     <a href="http://wiki.debian.org/LowThresholdNmu"><acronym
181 zack 1751 title="maintainer agrees with Low Threshold NMU, see wiki page for details">LowNMU</acronym></a>
182 zack 1750 </span>
183 zack 1799 <xsl:text> </xsl:text>
184 zack 1750 </xsl:if>
185 zack 1748 </td>
186     </tr>
187     </xsl:if>
188     </xsl:template>
189    
190 zack 1745 <xsl:template name="output-news">
191     <xsl:param name="news" />
192    
193     <xsl:if test="count($news)>0 and string($news)!=''">
194     <tr class="titlerow">
195     <td class="titlecell">
196 zack 1774 Latest news <a class="feedlink" href="{$package}/news.rss20.xml">RSS</a>
197 zack 1745 </td></tr>
198     <tr class="normalrow">
199     <td class="contentcell2">
200 zack 1770 <ul id="news-list"><xsl:copy-of select="$news"/></ul>
201 zack 1745 </td>
202     </tr>
203     </xsl:if>
204     </xsl:template>
205    
206     <xsl:template name="output-static">
207     <xsl:param name="static" />
208    
209     <xsl:if test="count($static)>0 and string($static)!=''">
210     <tr class="titlerow">
211     <td class="titlecell">
212     Static Information
213     </td></tr>
214     <tr class="normalrow">
215     <td class="contentcell2">
216     <ul><xsl:copy-of select="$static"/></ul>
217     </td>
218     </tr>
219     </xsl:if>
220     </xsl:template>
221    
222 zack 1757 <xsl:template name="categorize-srcfile">
223     <!-- used to recognize (and tag afterwards) well-known type of source package
224     components: dsc, diff, orig -->
225     <xsl:choose>
226     <xsl:when test="substring(filename,string-length(filename)-2, 3)='dsc'">
227 zack 1759 <xsl:text>dsc</xsl:text>
228 zack 1757 </xsl:when>
229     <xsl:when test="substring(filename,string-length(filename)-6, 7)='diff.gz'">
230 zack 1759 <xsl:text>diff</xsl:text>
231 zack 1757 </xsl:when>
232 zack 1772 <xsl:when test="substring(filename,string-length(filename)-5, 3)='tar'">
233 zack 1759 <xsl:text>orig</xsl:text>
234 zack 1757 </xsl:when>
235     <xsl:otherwise><xsl:text></xsl:text></xsl:otherwise>
236     </xsl:choose>
237     </xsl:template>
238    
239 zack 1765 <xsl:template name="maintainer-email">
240     <xsl:param name="email" />
241     <a class="email" href="mailto:{$email}">
242     <img alt="[email]" src="../common/email.png" title="email" />
243     </a>
244     </xsl:template>
245    
246 zack 1768 <xsl:template name="general-information">
247 hertzog 347 <tr class="titlerow">
248 zack 1768 <td class="titlecell" colspan="2">
249     General information
250     </td>
251     </tr>
252 hertzog 347 <tr class="normalrow">
253 zack 1768 <td class="labelcell">Latest version</td>
254     <td class="contentcell"><xsl:value-of select="version"/></td>
255 hertzog 347 </tr>
256     <xsl:if test="@release!='unstable'">
257 zack 1768 <tr class="normalrow">
258     <td class="labelcell">Distribution</td>
259     <td class="contentcell"><xsl:value-of select="@release"/></td>
260     </tr>
261 hertzog 347 </xsl:if>
262     <tr class="normalrow">
263 zack 1768 <td class="labelcell">Maintainer</td>
264     <td class="contentcell">
265 jeroen 1170 <xsl:element name="a">
266 zack 1768 <xsl:attribute name="href">
267     <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
268     <xsl:call-template name="escape-name">
269     <xsl:with-param name="text"><xsl:value-of select="maintainer/email"/></xsl:with-param>
270     </xsl:call-template>
271     </xsl:attribute>
272     <xsl:value-of select="maintainer/name"/>
273 jeroen 1170 </xsl:element>
274 zack 1765 <xsl:text> </xsl:text>
275     <xsl:call-template name="maintainer-email">
276 zack 1768 <xsl:with-param name="email" select="maintainer/email" />
277 zack 1765 </xsl:call-template>
278 zack 1768 </td>
279     </tr>
280 zack 1931 <xsl:if test="uploaders">
281     <tr class="normalrow">
282     <td class="labelcell"><a href="http://www.debian.org/doc/manuals/developers-reference/ch-pkgs.en.html#s-collaborative-maint">Uploaders</a></td>
283     <td class="contentcell">
284     <xsl:for-each select="uploaders/item">
285     <xsl:element name="a">
286     <xsl:attribute name="href">
287     <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
288     <xsl:call-template name="escape-name">
289     <xsl:with-param name="text"><xsl:value-of select="email"/></xsl:with-param>
290     </xsl:call-template>
291     </xsl:attribute>
292     <xsl:value-of select="name"/>
293     </xsl:element>
294     <xsl:text> </xsl:text>
295     <xsl:call-template name="maintainer-email">
296     <xsl:with-param name="email" select="email" />
297     </xsl:call-template>
298     <br />
299     </xsl:for-each>
300     <xsl:call-template name='add-maintenance-info'>
301     <xsl:with-param name="email" select="maintainer/email" />
302     </xsl:call-template>
303     </td></tr>
304     </xsl:if>
305 zack 1768 <tr class="normalrow">
306 zack 1798 <td class="labelcell">Standards version</td>
307 zack 1768 <td class="contentcell"><xsl:value-of select="standards-version"/></td>
308 hertzog 347 </tr>
309 hertzog 603 <tr class="normalrow">
310 zack 1798 <td class="labelcell">Priority</td>
311     <td class="contentcell"> <xsl:value-of select="priority"/> </td>
312 hertzog 603 </tr>
313 zack 1798 <tr class="normalrow">
314     <td class="labelcell">Section</td>
315     <td class="contentcell"> <xsl:value-of select="section"/> </td>
316     </tr>
317 hertzog 1412 <xsl:call-template name='add-vcs-info' />
318 hertzog 529 <xsl:if test="architecture!='any' and architecture!='all'">
319 zack 1768 <tr class="normalrow">
320     <td class="labelcell">Architecture</td>
321     <td class="contentcell"><xsl:value-of select="architecture"/></td>
322     </tr>
323 hertzog 529 </xsl:if>
324 zack 1768 </xsl:template>
325    
326     <xsl:template name="bugs-count">
327 hertzog 347 <tr class="titlerow">
328 zack 1768 <td class="titlecell" colspan="2">
329 hertzog 1832 Bugs count
330 zack 1768 </td>
331     </tr>
332 zack 1756 <tr class="normalrow" id="bugs_all">
333 hertzog 1832 <td class="labelcell">All bugs
334     (<xsl:element name="a">
335     <xsl:attribute name="href">
336     <xsl:text>http://people.debian.org/~glandium/bts/</xsl:text>
337     <xsl:value-of select="substring($package, 1, 1)"/>
338     <xsl:text>/</xsl:text>
339 zack 1939 <xsl:value-of select="$escaped-package" />
340 hertzog 1832 <xsl:text>.png</xsl:text>
341     </xsl:attribute>
342     <xsl:text>graph</xsl:text>
343 hertzog 1909 </xsl:element>
344     <xsl:text>)</xsl:text>
345 hertzog 1832 </td>
346 zack 1768 <td class="contentcell">
347     <xsl:element name="a">
348     <xsl:attribute name="href">
349 hertzog 1911 <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=no&amp;src=</xsl:text>
350 zack 1939 <xsl:value-of select="$escaped-package" />
351 zack 1768 </xsl:attribute>
352     <xsl:if test="$hasother">
353     <xsl:value-of select="$other/bugs/@all"/>
354     </xsl:if>
355     </xsl:element>
356 hertzog 1911 <xsl:if test="$hasother and $other/bugs/@all_m">
357     (<xsl:element name="a">
358     <xsl:attribute name="href">
359     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=yes&amp;src=</xsl:text>
360 zack 1939 <xsl:value-of select="$escaped-package" />
361 hertzog 1911 </xsl:attribute>
362     <xsl:value-of select="$other/bugs/@all_m"/>
363     </xsl:element>)
364     </xsl:if>
365 zack 1768 </td>
366 hertzog 347 </tr>
367 zack 1756 <tr class="normalrow" id="bugs_rc">
368 zack 1768 <td class="labelcell"><span class="indented"><acronym title="Release Critical">RC</acronym> bugs</span></td>
369     <td class="contentcell">
370     <xsl:element name="a">
371     <xsl:attribute name="href">
372 hertzog 1911 <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
373 zack 1939 <xsl:value-of select="$escaped-package" />
374 hertzog 1911 <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>
375 zack 1768 </xsl:attribute>
376     <xsl:if test="$hasother">
377     <xsl:value-of select="$other/bugs/@rc"/>
378     </xsl:if>
379     </xsl:element>
380 hertzog 1911 <xsl:if test="$hasother and $other/bugs/@rc_m">
381     (<xsl:element name="a">
382     <xsl:attribute name="href">
383     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
384 zack 1939 <xsl:value-of select="$escaped-package" />
385 hertzog 1911 <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>
386     </xsl:attribute>
387     <xsl:value-of select="$other/bugs/@rc_m"/>
388     </xsl:element>)
389     </xsl:if>
390 zack 1768 </td>
391 hertzog 347 </tr>
392 zack 1756 <tr class="normalrow" id="bugs_in">
393 zack 1775 <td class="labelcell"><span class="indented"><acronym title="Important and Normal">I&amp;N</acronym> bugs</span></td>
394 zack 1768 <td class="contentcell">
395     <xsl:element name="a">
396     <xsl:attribute name="href">
397 hertzog 1911 <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
398 zack 1939 <xsl:value-of select="$escaped-package" />
399 hertzog 1911 <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>
400 zack 1768 </xsl:attribute>
401     <xsl:if test="$hasother">
402     <xsl:value-of select="$other/bugs/@normal"/>
403     </xsl:if>
404     </xsl:element>
405 hertzog 1911 <xsl:if test="$hasother and $other/bugs/@normal_m">
406     (<xsl:element name="a">
407     <xsl:attribute name="href">
408     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
409 zack 1939 <xsl:value-of select="$escaped-package" />
410 hertzog 1911 <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>
411     </xsl:attribute>
412     <xsl:value-of select="$other/bugs/@normal_m"/>
413     </xsl:element>)
414     </xsl:if>
415 zack 1768 </td>
416 hertzog 347 </tr>
417 zack 1756 <tr class="normalrow" id="bugs_mw">
418 zack 1775 <td class="labelcell"><span class="indented"><acronym title="Minor and Wishlist">M&amp;W</acronym> bugs</span></td>
419 zack 1768 <td class="contentcell">
420     <xsl:element name="a">
421     <xsl:attribute name="href">
422 hertzog 1911 <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
423 zack 1939 <xsl:value-of select="$escaped-package" />
424 hertzog 1911 <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>
425 zack 1768 </xsl:attribute>
426     <xsl:if test="$hasother">
427     <xsl:value-of select="$other/bugs/@wishlist"/>
428     </xsl:if>
429     </xsl:element>
430 hertzog 1911 <xsl:if test="$hasother and $other/bugs/@wishlist_m">
431     (<xsl:element name="a">
432     <xsl:attribute name="href">
433     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
434 zack 1939 <xsl:value-of select="$escaped-package" />
435 hertzog 1911 <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=minor&amp;sev-inc=wishlist&amp;repeatmerged=yes</xsl:text>
436     </xsl:attribute>
437     <xsl:value-of select="$other/bugs/@wishlist_m"/>
438     </xsl:element>)
439     </xsl:if>
440 zack 1768 </td>
441 hertzog 347 </tr>
442 zack 1756 <tr class="normalrow" id="bugs_fp">
443 zack 1775 <td class="labelcell"><span class="indented"><acronym title="Fixed and Pending">F&amp;P</acronym> bugs</span></td>
444 zack 1768 <td class="contentcell">
445     <xsl:element name="a">
446     <xsl:attribute name="href">
447 hertzog 1911 <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
448 zack 1939 <xsl:value-of select="$escaped-package" />
449 hertzog 1911 <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=no</xsl:text>
450 zack 1768 </xsl:attribute>
451     <xsl:if test="$hasother">
452     <xsl:value-of select="$other/bugs/@fixed"/>
453     </xsl:if>
454     </xsl:element>
455 hertzog 1911 <xsl:if test="$hasother and $other/bugs/@fixed_m">
456     (<xsl:element name="a">
457     <xsl:attribute name="href">
458     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
459 zack 1939 <xsl:value-of select="$escaped-package" />
460 hertzog 1911 <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed&amp;repeatmerged=yes</xsl:text>
461     </xsl:attribute>
462     <xsl:value-of select="$other/bugs/@fixed_m"/>
463     </xsl:element>)
464     </xsl:if>
465 zack 1768 </td>
466 hertzog 347 </tr>
467 zack 1939 <xsl:if test="$other/bugs/@gift > 0">
468     <tr class="normalrow" id="bugs_gift">
469     <td class="labelcell"><span class="indented"><a
470     href="http://wiki.debian.org/qa.debian.org/GiftTag">Gift</a>
471     bugs</span></td>
472     <td class="contentcell">
473     <xsl:element name="a">
474     <xsl:attribute name="href">
475     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?src=</xsl:text>
476     <xsl:value-of select="$escaped-package" />
477     <xsl:text>&amp;users=debian-qa@lists.debian.org;tag=gift</xsl:text>
478     </xsl:attribute>
479     <xsl:value-of select="$other/bugs/@gift" />
480     </xsl:element>
481     </td>
482     </tr>
483     </xsl:if>
484 zack 1768 </xsl:template>
485 hertzog 347
486 zack 1768 <xsl:template name="pts-subscription">
487 hertzog 347 <tr class="titlerow">
488 zack 1768 <td class="titlecell" colspan="2">
489     <a class="titlelink" href="http://www.debian.org/doc/manuals/developers-reference/ch-resources.en.html#s-pkg-tracking-system"><acronym title="Package Tracking System">PTS</acronym></a> subscription
490 hertzog 347 </td></tr>
491     <tr class="normalrow">
492 zack 1768 <td class="labelcell">Subscribers count</td>
493     <td class="contentcell"><xsl:if test="$hasother">
494     <xsl:value-of select="$other/pts/@count"/>
495     </xsl:if></td>
496 hertzog 347 </tr>
497     <tr class="normalrow">
498 zack 1768 <td class="contentcell" colspan="2">
499     <form method="post" action="/cgi-bin/pts.cgi">
500     <p>
501     <input type="hidden" name="package" value="{$package}"/>
502     <select name="what">
503     <option value="subscribe">Subscribe</option>
504     <option value="unsubscribe">Unsubscribe</option>
505     <option value="advanced">Advanced mode</option>
506     </select>
507     <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>
508     <input type="submit" name="submit" value="Send"/>
509     </p>
510     </form>
511     </td>
512 hertzog 347 </tr>
513 zack 1768 </xsl:template>
514 hertzog 347
515 zack 1768 <xsl:template name="binary-packages">
516 hertzog 347 <tr class="titlerow">
517 zack 1951 <td class="titlecell" colspan="2">Binary packages</td>
518     </tr>
519 hertzog 347 <tr class="normalrow">
520 zack 1768 <td class="normalcell" colspan="2" style="text-align: left">
521     <ul>
522     <xsl:for-each select="binary/item">
523     <xsl:sort select="text()"/>
524     <xsl:variable name="pkg" select="text()"/>
525 zack 1951 <xsl:variable name="tooltip"
526     select="concat($pkg, ': ',
527     $other/descriptions/shortdesc[@package=$pkg])" />
528 zack 1768 <li class="binpkg">
529 zack 1951 <a class="binpkg" title="{$tooltip}"
530     href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>
531 zack 1768 <span style="font-size: 70%">
532     (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:
533 hertzog 530
534 zack 1768 <xsl:element name="a">
535     <xsl:attribute name="title">critical, grave and serious</xsl:attribute>
536     <xsl:attribute name="href">
537     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
538     <xsl:call-template name="escape-name">
539     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
540     </xsl:call-template>
541     <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>
542     </xsl:attribute>
543     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>
544     </xsl:element>,
545 hertzog 530
546 zack 1768 <xsl:element name="a">
547     <xsl:attribute name="title">important and normal</xsl:attribute>
548     <xsl:attribute name="href">
549     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
550     <xsl:call-template name="escape-name">
551     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
552     </xsl:call-template>
553     <xsl:text>&amp;archive=no&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done&amp;sev-inc=important&amp;sev-inc=normal</xsl:text>
554     </xsl:attribute>
555     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>
556     </xsl:element>,
557 hertzog 530
558 zack 1768 <xsl:element name="a">
559     <xsl:attribute name="title">wishlist and minor</xsl:attribute>
560     <xsl:attribute name="href">
561     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
562     <xsl:call-template name="escape-name">
563     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
564     </xsl:call-template>
565     <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>
566     </xsl:attribute>
567     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>
568     </xsl:element>,
569    
570     <xsl:element name="a">
571     <xsl:attribute name="title">pending and fixed</xsl:attribute>
572     <xsl:attribute name="href">
573     <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
574     <xsl:call-template name="escape-name">
575     <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
576     </xsl:call-template>
577     <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
578     </xsl:attribute>
579     <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>
580     </xsl:element>)
581     </span>
582     </li>
583     </xsl:for-each>
584 djpig 1085 </ul></td></tr>
585 zack 1768 </xsl:template>
586 hertzog 347
587 zack 1768 <xsl:template name="available-versions">
588 hertzog 347 <tr class="titlerow">
589 zack 1768 <td class="titlecell" colspan="2">
590     Available versions
591 hertzog 347 </td></tr>
592 jeroen 1027
593     <!-- oldstable -->
594     <xsl:if test="$hasoldstable">
595 zack 1768 <tr class="normalrow">
596     <td class="labelcell"><a href="http://www.debian.org/releases/sarge/">Oldstable</a></td>
597     <td class="contentcell">
598 zack 1818 <a href="http://packages.debian.org/source/oldstable/{$package}"><xsl:value-of
599     select="document(concat('../base/', $dir, '/oldstable.xml'))/source/version"/></a>
600 zack 1768 </td>
601     </tr>
602 hertzog 347 </xsl:if>
603 jeroen 1021 <xsl:if test="$hasoldstable-security">
604 zack 1768 <tr class="normalrow">
605     <td class="labelcell"><small>Oldstable Security Updates</small></td>
606     <td class="contentcell">
607     <xsl:value-of select="document(concat('../base/', $dir, '/oldstable-security.xml'))/source/version"/>
608     </td>
609     </tr>
610 jeroen 1021 </xsl:if>
611 jeroen 1027
612     <!-- stable -->
613     <xsl:if test="$hasstable">
614 zack 1768 <tr class="normalrow">
615     <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>
616     <td class="contentcell">
617 zack 1818 <a href="http://packages.debian.org/source/stable/{$package}"><xsl:value-of
618     select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/></a>
619 zack 1768 </td>
620     </tr>
621 jeroen 1027 </xsl:if>
622 hertzog 351 <xsl:if test="$hasstable-security">
623 zack 1768 <tr class="normalrow">
624     <td class="labelcell"><small>Stable Security Updates</small></td>
625     <td class="contentcell">
626     <xsl:value-of select="document(concat('../base/', $dir, '/stable-security.xml'))/source/version"/>
627     </td>
628     </tr>
629 hertzog 351 </xsl:if>
630 jeroen 1027 <xsl:if test="$hass-p-u">
631 zack 1768 <tr class="normalrow">
632     <td class="labelcell"><small>Stable Proposed Updates</small></td>
633     <td class="contentcell">
634     <xsl:value-of select="document(concat('../base/', $dir, '/s-p-u.xml'))/source/version"/>
635     </td>
636     </tr>
637 hertzog 351 </xsl:if>
638 jeroen 1027
639     <!-- testing -->
640 hertzog 347 <xsl:if test="$hastesting">
641 zack 1768 <tr class="normalrow">
642     <td class="labelcell"><a href="http://www.debian.org/releases/testing/">Testing</a></td>
643     <td class="contentcell">
644 zack 1818 <a href="http://packages.debian.org/source/testing/{$package}"><xsl:value-of
645     select="document(concat('../base/', $dir, '/testing.xml'))/source/version"/></a>
646 zack 1768 </td>
647     </tr>
648 hertzog 347 </xsl:if>
649 jeroen 1027 <xsl:if test="$hastesting-security">
650 zack 1768 <tr class="normalrow">
651     <td class="labelcell"><small>Testing Security Updates</small></td>
652     <td class="contentcell">
653     <xsl:value-of select="document(concat('../base/', $dir, '/testing-security.xml'))/source/version"/>
654     </td>
655     </tr>
656 hertzog 351 </xsl:if>
657 jeroen 1027 <xsl:if test="$hast-p-u">
658 zack 1768 <tr class="normalrow">
659     <td class="labelcell"><small>Testing Proposed Updates</small></td>
660     <td class="contentcell">
661     <xsl:value-of select="document(concat('../base/', $dir, '/t-p-u.xml'))/source/version"/>
662     </td>
663     </tr>
664 jeroen 1021 </xsl:if>
665 zack 1768
666 hertzog 1049 <!-- unstable -->
667 jeroen 1027 <xsl:if test="$hasunstable">
668 zack 1768 <tr class="normalrow">
669     <td class="labelcell">Unstable</td>
670     <td class="contentcell">
671 zack 1818 <a href="http://packages.debian.org/source/unstable/{$package}"><xsl:value-of
672     select="document(concat('../base/', $dir, '/unstable.xml'))/source/version"/></a>
673 zack 1768 </td>
674     </tr>
675 hertzog 347 </xsl:if>
676 zack 1768
677 jeroen 1027 <!-- experimental -->
678     <xsl:if test="$hasexperimental">
679 zack 1768 <tr class="normalrow">
680     <td class="labelcell">Experimental</td>
681     <td class="contentcell">
682 zack 1818 <a href="http://packages.debian.org/source/experimental/{$package}"><xsl:value-of
683     select="document(concat('../base/', $dir, '/experimental.xml'))/source/version"/></a>
684 zack 1768 </td>
685     </tr>
686 hertzog 351 </xsl:if>
687 jeroen 1027
688 hertzog 1090 <!-- secure-testing -->
689     <xsl:if test="$hassecure-testing">
690 zack 1768 <tr class="normalrow">
691     <td class="labelcell">Secure testing</td>
692     <td class="contentcell">
693     <xsl:value-of select="document(concat('../base/', $dir, '/secure-testing.xml'))/source/version"/>
694     </td>
695     </tr>
696 hertzog 1090 </xsl:if>
697    
698     <!-- volatile -->
699     <xsl:if test="$hasvolatile">
700 zack 1768 <tr class="normalrow">
701     <td class="labelcell">Volatile</td>
702     <td class="contentcell">
703     <xsl:value-of select="document(concat('../base/', $dir, '/volatile.xml'))/source/version"/>
704     </td>
705     </tr>
706 hertzog 1090 </xsl:if>
707 zack 1768 </xsl:template>
708 hertzog 1090
709 hertzog 1887 <xsl:template name="ubuntu">
710 hertzog 1049 <!-- Patches list [FG] -->
711 hertzog 1887 <xsl:if test="$other/@ubuntu='yes'">
712 hertzog 1049 <tr class="titlerow">
713 zack 1768 <td class="titlecell" colspan="2">
714 hertzog 1887 Ubuntu
715 hertzog 1049 </td></tr>
716     <tr>
717 zack 1768 <td class="contentcell" colspan="2" style="text-align: left">
718     <ul>
719     <li>
720 hertzog 1887 Version: <a href="{$other/ubuntu/@url}"><xsl:value-of select="$other/ubuntu/@version"/></a>
721 zack 1768 </li>
722 hertzog 1887 <xsl:if test="$other/ubuntu/patch">
723 zack 1768 <li>
724 hertzog 1887 <a href="{$other/ubuntu/patch/@url}">Patch for version <xsl:value-of select="$other/ubuntu/patch/@version"/></a>
725 zack 1768 </li>
726     </xsl:if>
727 hertzog 1887 <xsl:if test="$other/ubuntu/bugs">
728     <li>
729     <a href="{$other/ubuntu/bugs/@url}"><xsl:value-of select="$other/ubuntu/bugs/@count"/> open bugs</a>
730     </li>
731     </xsl:if>
732 zack 1768 </ul>
733     </td>
734 hertzog 1049 </tr>
735     </xsl:if>
736 zack 1768 </xsl:template>
737 hertzog 1049
738 zack 1768 <xsl:template name="other-links">
739 hertzog 347 <tr class="titlerow">
740 zack 1768 <td class="titlecell" colspan="2">
741     Other links
742 hertzog 347 </td></tr>
743     <tr>
744 zack 1768 <td class="contentcell" colspan="2" style="text-align: left">
745     <ul>
746 zack 1774 <xsl:if test="homepage">
747     <li> <a href="{homepage}">Upstream homepage</a> </li>
748     </xsl:if>
749 zack 1768 <li>
750     <xsl:element name="a">
751     <xsl:attribute name="href">
752     <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
753     <xsl:value-of select="directory"/>
754     <xsl:text>/current/changelog</xsl:text>
755     </xsl:attribute>
756     <xsl:text>Changelog</xsl:text>
757     </xsl:element>
758     /
759     <xsl:element name="a">
760     <xsl:attribute name="href">
761     <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
762     <xsl:value-of select="directory"/>
763     <xsl:text>/current/copyright</xsl:text>
764     </xsl:attribute>
765     <xsl:text>Copyright</xsl:text>
766     </xsl:element>
767     </li>
768     <xsl:if test="architecture!='all'">
769     <li>
770 zack 1825 <xsl:text>Buildd: </xsl:text>
771     <a href="http://buildd.debian.org/pkg.cgi?pkg={$escaped-package}"
772     title="buildd.debian.org build logs">logs</a>
773 zack 1819 <xsl:text>, </xsl:text>
774 zack 1834 <!-- <a href="http://people.debian.org/~igloo/status.php?packages={$escaped-package}"
775     title="igloo's build logs on people.debian.org">more</a> -->
776     <a href="http://buildd.debian.org/~jeroen/status/package.php?p={$escaped-package}"
777     title="jeroen's build logs on buildd.debian.org">more</a>
778 zack 1825 <xsl:text>, </xsl:text>
779     <a href="http://experimental.debian.net/build.php?pkg={$escaped-package}"
780     title="experimental.debian.net build logs">exp</a>
781     <xsl:text>, </xsl:text>
782     <a href="http://buildd.debian-ports.org/status/package.php?p={$escaped-package}"
783     title="debian ports build logs">ports</a>
784 zack 1768 </li>
785     </xsl:if>
786     <!-- DISABLED until ddtp.debian.org is back up
787     <li>
788     <xsl:element name="a">
789     <xsl:attribute name="href">
790     <xsl:text>http://ddtp.debian.org/stats/pdesc/report.cgi?package=</xsl:text>
791     <xsl:call-template name="escape-name">
792     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
793     </xsl:call-template>
794     <xsl:text>&amp;lang=all&amp;type=src-drvbin&amp;subword=0</xsl:text>
795     </xsl:attribute>
796     Description's translations (DDTP)
797     </xsl:element>
798     </li>
799     <xsl:if test="$other/@debconf='yes'">
800     <li>
801     <xsl:element name="a">
802     <xsl:attribute name="href">
803     <xsl:text>http://ddtp.debian.org/cgi-bin/ddtp.cgi?part=debconf&amp;package=</xsl:text>
804     <xsl:call-template name="escape-name">
805     <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
806     </xsl:call-template>
807     </xsl:attribute>
808     Debconf templates's translations (DDTP)
809     </xsl:element>
810     </li>
811     </xsl:if>
812     -->
813     <xsl:if test="($hasunstable and $other/debcheck/@unstable='yes')
814     or ($hastesting and $other/debcheck/@testing='yes')
815     or ($hasstable and $other/debcheck/@stable='yes')">
816     <li>
817     Debcheck on:
818     <xsl:if test="$hasunstable">
819     <xsl:text> </xsl:text>
820 zack 1819 <a href="http://qa.debian.org/debcheck.php?dist=unstable&amp;package={$escaped-package}">unstable</a>
821 zack 1768 </xsl:if>
822     <xsl:if test="$hastesting">
823     <xsl:text> </xsl:text>
824 zack 1819 <a href="http://qa.debian.org/debcheck.php?dist=testing&amp;package={$escaped-package}">testing</a>
825 zack 1768 </xsl:if>
826     <xsl:if test="$hasstable">
827     <xsl:text> </xsl:text>
828 zack 1819 <a href="http://qa.debian.org/debcheck.php?dist=stable&amp;package={$escaped-package}">stable</a>
829 zack 1768 </xsl:if>
830     </li>
831     </xsl:if>
832 zack 1927 <xsl:if test="$other/@lintian='yes'">
833     <xsl:variable name="lintian_url"><xsl:call-template name="mk_lintian_url" /></xsl:variable>
834 zack 1934 <li>
835     <a href="{$lintian_url}">Lintian report</a>
836     <xsl:if test="$lin_errs + $lin_warns > 0">
837     <xsl:text> </xsl:text>
838     <small><span title="(errors, warnings)">(<xsl:value-of select="$lin_errs" />,
839     <xsl:value-of select="$lin_warns" />)</span></small>
840     </xsl:if>
841     </li>
842 zack 1927 </xsl:if>
843 zack 1768 <li>
844 zack 1819 <a href="http://qa.debian.org/developer.php?popcon={$escaped-package}">Popcon stats</a>
845 zack 1768 </li>
846 zack 1800 <xsl:if test="$other/@svnbuildstat='yes'">
847     <li>
848 zack 1819 <a href="http://svnbuildstat.debian.net/packages/info/{$escaped-package}">Svnbuildstat</a>
849 zack 1800 </li>
850     </xsl:if>
851 zack 1768 </ul>
852     </td>
853 hertzog 347 </tr>
854 zack 1768 </xsl:template>
855 hertzog 347
856 zack 1768 <xsl:template name="package-files">
857 hertzog 347 <tr class="titlerow">
858 zack 1768 <td class="titlecell" colspan="2">
859 zack 1798 Source package
860 hertzog 347 </td></tr>
861 zack 1759 <tr class="titlerow">
862 zack 1768 <td class="labelcell">
863     <xsl:element name="a">
864     <xsl:attribute name="href">
865     <xsl:call-template name="mirror"/>
866     <xsl:text>/</xsl:text>
867     <xsl:value-of select="directory"/>
868     <xsl:text>/</xsl:text>
869     </xsl:attribute>
870 zack 1798 <xsl:text>Files</xsl:text>
871 zack 1758 </xsl:element>
872 zack 1768 </td>
873     <td class="contentcell" id="src_files">
874     <ul>
875     <xsl:for-each select="files/item">
876     <xsl:variable name="filetype">
877     <xsl:call-template name="categorize-srcfile" />
878     </xsl:variable>
879     <xsl:element name="li">
880     <xsl:attribute name="class">srcfile</xsl:attribute>
881     <xsl:if test="string($filetype)!=''">
882     <xsl:attribute name="id">
883     <xsl:text>srcfile_</xsl:text>
884     <xsl:value-of select="$filetype" />
885     </xsl:attribute>
886     </xsl:if>
887     <xsl:element name="a">
888     <xsl:attribute name="class">srcfile</xsl:attribute>
889     <xsl:attribute name="href">
890     <xsl:call-template name="mirror"/>
891     <xsl:text>/</xsl:text>
892     <xsl:value-of select="../../directory"/>
893     <xsl:text>/</xsl:text>
894     <xsl:value-of select="filename"/>
895     </xsl:attribute>
896     <xsl:attribute name="title">
897     <xsl:value-of select="filename" />
898     <xsl:text>: </xsl:text>
899     <xsl:value-of select="size"/>
900     <xsl:text> bytes</xsl:text>
901     </xsl:attribute>
902     <xsl:text>.</xsl:text>
903     <xsl:value-of select="$filetype"/>
904     </xsl:element>
905     </xsl:element>
906     </xsl:for-each>
907     </ul>
908     </td>
909 zack 1759 </tr>
910 zack 1768 </xsl:template>
911 hertzog 347
912 zack 1768 <xsl:template name="todo-list">
913 hertzog 347 <xsl:variable name="todo">
914     <xsl:if test="@nmu">
915     <li>Incorporate and acknowledge the changes from the non maintainer upload.</li>
916     </xsl:if>
917 zack 1934 <xsl:if test="$lin_errs + $lin_warns > 0">
918 zack 1927 <li>
919     <xsl:variable name="lintian_url"><xsl:call-template name="mk_lintian_url" /></xsl:variable>
920     <a href="http://lintian.debian.org">Lintian</a><xsl:text> </xsl:text>
921 zack 1934 <xsl:text>reports </xsl:text>
922 zack 1929 <a href="{$lintian_url}">
923 zack 1934 <xsl:if test="$lin_errs > 0"><xsl:value-of select="$lin_errs" /> error<xsl:if test="$lin_errs > 1">s</xsl:if></xsl:if>
924     <xsl:if test="$lin_errs > 0 and $lin_warns > 0"> and </xsl:if>
925     <xsl:if test="$lin_warns > 0"><xsl:value-of select="$lin_warns" /> warning<xsl:if test="$lin_warns > 1">s</xsl:if></xsl:if>
926 zack 1929 </a>
927     about this package. You should make the package <em>lintian clean</em>
928 zack 1934 getting rid of <xsl:if test="$lin_errs + $lin_warns = 1">it</xsl:if>
929     <xsl:if test="$lin_errs + $lin_warns > 1">them</xsl:if>.
930 zack 1927 </li>
931     </xsl:if>
932 zack 1933 <xsl:if test="$hasmentors"> <!-- todo item about sponsoring mentors.d.n. uploads -->
933     <xsl:variable name="mentors_version"
934     select="document(concat('../base/', $dir, '/mentors.xml'))/source/version" />
935     <li>
936     <a href="http://mentors.debian.net"><tt>mentors.debian.net</tt></a> has
937     <a href="http://mentors.debian.net/cgi-bin/sponsor-pkglist?action=details;package={$package}">version
938     <xsl:value-of select="$mentors_version" /></a> of this package, you
939     should consider sponsoring its upload.
940     </li>
941     </xsl:if>
942 hertzog 347 <xsl:if test="not(uploaders)and(priority='standard' or priority='required' or priority='important')">
943     <li>The package is of priority standard or higher, you should really find some co-maintainers.</li>
944     </xsl:if>
945 hertzog 1915 <xsl:if test="standards-version!='' and not(starts-with(standards-version, $lastsv))">
946 hertzog 572 <li>The package should be updated to follow the last version of
947 zack 1768 <a href="http://www.debian.org/doc/debian-policy/">Debian Policy</a> (Standards-Version
948     <xsl:value-of select="$lastsv"/> instead of
949     <xsl:value-of select="standards-version"/>).</li>
950 hertzog 347 </xsl:if>
951     <xsl:if test="$hasother">
952     <xsl:for-each select="$other/todo/item">
953 zack 1768 <xsl:call-template name="outputitem"/>
954 hertzog 347 </xsl:for-each>
955 zack 1823 <xsl:if test="$other[dehs/@newer]">
956     <li>A new upstream version is available:
957     <a href="http://dehs.alioth.debian.org/maintainer.php?name={$escaped-package}"><xsl:value-of select="$other/dehs/@newer"/></a>,
958     you should consider packaging it.</li>
959 hertzog 643 </xsl:if>
960 hertzog 1047 <xsl:if test="$other/bugs/@patch!='0'">
961 zack 1768 <li>The Bug Tracking System contains
962 hertzog 1911 <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?src={$escaped-package}&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done&amp;repeatmerged=no">patches fixing
963 zack 1831 <xsl:value-of select="$other/bugs/@patch"/> bug<xsl:if test="$other/bugs/@patch!='1'">s</xsl:if>
964 hertzog 1911 </a>
965     <xsl:if test="$other/bugs/@patch_m">
966     <xsl:text> (</xsl:text>
967     <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?src={$escaped-package}&amp;include=tags:patch&amp;exclude=tags:pending&amp;pend-exc=done&amp;repeatmerged=yes">
968     <xsl:value-of select="$other/bugs/@patch_m"/>
969     </a>
970     <xsl:text> if counting merged bugs)</xsl:text>
971     </xsl:if>, consider including or untagging
972 zack 1831 <xsl:if test="$other/bugs/@patch!='1'">them</xsl:if>
973     <xsl:if test="$other/bugs/@patch='1'">it</xsl:if>.
974 hertzog 1301 </li>
975 hertzog 1047 </xsl:if>
976 hertzog 347 </xsl:if>
977     </xsl:variable>
978 hertzog 372 <xsl:if test="count($todo)>0 and string($todo)!=''">
979 zack 1768 <tr class="titlerow">
980     <td class="titlecell" id="todo">
981     Todo
982     </td></tr>
983     <tr class="normalrow">
984     <td class="contentcell2">
985     <ul>
986     <xsl:copy-of select="$todo"/>
987     </ul>
988     </td>
989     </tr>
990 hertzog 347 </xsl:if>
991 zack 1768 </xsl:template>
992    
993     <xsl:template name="problems">
994 hertzog 347 <xsl:variable name="problems">
995 hertzog 357 <xsl:if test="$hasexcuse and document(concat('../base/', $dir, '/excuse.xml'))/excuse/@problematic">
996 hertzog 347 <li>The package has not yet entered <a
997 zack 1768 href="http://ftp-master.debian.org/testing/update_excuses.html.gz#{$package}">testing</a>
998     even though the <xsl:value-of select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/@limit"/>-day
999     delay is over.
1000 zack 1819 <a href="http://release.debian.org/migration/testing.pl?package={$escaped-package}">Check why</a>.</li>
1001 hertzog 347 </xsl:if>
1002 hertzog 1915 <xsl:if test="standards-version!='' and not(starts-with(standards-version, $lastmajorsv))">
1003 hertzog 347 <li>The package is severly out of date with respect to the Debian
1004 zack 1768 Policy. Latest version is <xsl:value-of select="$lastsv"/>
1005     and your package only follows
1006     <xsl:value-of select="standards-version"/>...</li>
1007 hertzog 347 </xsl:if>
1008 hertzog 1303 <xsl:if test="@release!='unstable' and @release!='experimental'">
1009     <li>This package is neither part of unstable nor experimental. This
1010 zack 1768 probably means that the package <a
1011     href="http://ftp-master.debian.org/removals.txt">has been removed</a> (or
1012     has been renamed). Thus the information here is of little interest ...
1013     the package is going to disappear unless someone takes it over and
1014     reintroduces it into unstable.</li>
1015 hertzog 1303 </xsl:if>
1016 hertzog 347 <xsl:if test="$hasother">
1017 zack 1768
1018 jeroen 949 <!-- Override disparity handling. [JvW] -->
1019     <xsl:if test="$other/@override='yes'">
1020 zack 1768 <xsl:for-each select="$other/override/group">
1021     <li>There were override disparities found in suite <xsl:value-of
1022     select="@suite"/>:
1023     <ul>
1024     <xsl:for-each select="disparity">
1025     <li><xsl:value-of select="text()"/></li>
1026     </xsl:for-each>
1027     </ul>
1028     </li>
1029     </xsl:for-each>
1030 jeroen 949 </xsl:if>
1031    
1032 zack 1939 <xsl:if test="$other/bugs/@help > 0"> <!-- mention bugs tagged "help" -->
1033     <li>
1034     The <acronym title="Bug Tracking System">BTS</acronym> contains
1035 zack 1940 <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=help&amp;src={$package}&amp;pend-exc=pending-fixed&amp;pend-exc=fixed&amp;pend-exc=done">
1036 zack 1939 <xsl:value-of select="$other/bugs/@help" /> bug<xsl:if test="$other/bugs/@help > 1">s</xsl:if>
1037     </a>
1038     tagged <a href="http://www.debian.org/Bugs/Developer#tags"><tt>help</tt></a>,
1039     please consider helping the maintainer in dealing with
1040     <xsl:choose>
1041     <xsl:when test="$other/bugs/@help = 1">it.</xsl:when>
1042     <xsl:when test="$other/bugs/@help > 1">them.</xsl:when>
1043     </xsl:choose>
1044     </li>
1045     </xsl:if>
1046    
1047 hertzog 560 <!-- Wnpp handling. [PvR] -->
1048     <xsl:if test="$other/@wnpp='yes'">
1049 zack 1768 <li>
1050 hertzog 1712 <xsl:choose>
1051 zack 1768 <xsl:when test="$other/wnpp/@type='O'">
1052     <xsl:choose>
1053     <xsl:when test="@release!='unstable' and @release!='experimental'">
1054     The WNPP database contains an O (Orphaned) entry for
1055     this package. This is probably an error, as it is neither part of
1056     unstable nor experimental.
1057     </xsl:when>
1058     <xsl:otherwise>
1059     <span style="font-weight: bold">This package has been orphaned</span>.
1060     This means that it does not have a real maintainer at the
1061     moment. Please consider adopting this package if you are interested in it.
1062     </xsl:otherwise>
1063     </xsl:choose>
1064     </xsl:when>
1065     <xsl:when test="$other/wnpp/@type='ITA'">
1066     <xsl:choose>
1067     <xsl:when test="@release!='unstable' and @release!='experimental'">
1068     The WNPP database contains an ITA (Intent To Adopt) entry for
1069     this package. This is probably an error, as it is neither part of
1070     unstable nor experimental.
1071     </xsl:when>
1072     <xsl:otherwise>
1073     This package has been orphaned, but someone intends to maintain it.
1074     </xsl:otherwise>
1075     </xsl:choose>
1076     </xsl:when>
1077     <xsl:when test="$other/wnpp/@type='RFA'">
1078     <xsl:choose>
1079     <xsl:when test="@release!='unstable' and @release!='experimental'">
1080     The WNPP database contains an RFA (Request For Adoption) entry for
1081     this package. This is probably an error, as it is neither part of
1082     unstable nor experimental.
1083     </xsl:when>
1084     <xsl:otherwise>
1085     The current maintainer is looking for someone who can take over
1086     maintenance of this package. If you are interested in this package,
1087     please consider taking it over. Alternatively you may
1088     want to be co-maintainer in order to help the actual maintainer.
1089     </xsl:otherwise>
1090     </xsl:choose>
1091     </xsl:when>
1092     <xsl:when test="$other/wnpp/@type='RFH'">
1093     <xsl:choose>
1094     <xsl:when test="@release!='unstable' and @release!='experimental'">
1095     The WNPP database contains an RFH (Request For Help) entry for
1096     this package. This is probably an error, as it is neither part of
1097     unstable nor experimental.
1098     </xsl:when>
1099     <xsl:otherwise>
1100     The current maintainer is looking for someone who can help with the
1101     maintenance of this package. If you are interested in this package,
1102     please consider helping out. One way you can help is offer to be a
1103     co-maintainer or triage bugs in the bts.
1104     </xsl:otherwise>
1105     </xsl:choose>
1106     </xsl:when>
1107     <xsl:when test="$other/wnpp/@type='ITP'">
1108     <xsl:choose>
1109     <xsl:when test="@release!='unstable' and @release!='experimental'">
1110     The WNPP database contains an ITP (Intent To Package). This probably
1111     means that somebody is going to reintroduce this package into unstable.
1112     </xsl:when>
1113     <xsl:otherwise>
1114     The WNPP database contains an ITP (Intent To Package) entry for
1115     this package. This is probably an error, as it has already been
1116     packaged.
1117     </xsl:otherwise>
1118     </xsl:choose>
1119     </xsl:when>
1120     <xsl:when test="$other/wnpp/@type='RFP'">
1121     <xsl:choose>
1122     <xsl:when test="@release!='unstable' and @release!='experimental'">
1123     The WNPP database contains an RFP (Request For Package). This probably
1124     means that somebody would like to see this package reintroduced into
1125     unstable by a volunteer.
1126     </xsl:when>
1127     <xsl:otherwise>
1128     The WNPP database contains an RFP (Request For Package) entry
1129     for this package. This is probably an error, as it has already
1130     been packaged.
1131     </xsl:otherwise>
1132     </xsl:choose>
1133     </xsl:when>
1134     <xsl:when test="$other/wnpp/@type='RM'">
1135     <span style="font-weight: bold">This package has been requested to be
1136     removed</span>.
1137     This means that, when this request gets processed by an ftp-master, this
1138     package will no longer be in unstable, and will automatically be removed
1139     from testing too afterwards. If for some reason you want keep this
1140     package in unstable, please discuss so in the bug.
1141     </xsl:when>
1142     <xsl:otherwise>
1143     The WNPP database contains an entry for this package,
1144     but it is unclear what kind of entry it is. This is probably an error.
1145     </xsl:otherwise>
1146 hertzog 1712 </xsl:choose>
1147 zack 1768 <xsl:variable name="bn" select="$other/wnpp/@bugnumber"/>
1148     Please see bug number <a href="http://bugs.debian.org/{$bn}">
1149     #<xsl:value-of select="$bn"/></a> for more information.
1150     </li>
1151 hertzog 560 </xsl:if>
1152 zack 1768
1153 zack 1817 <!-- disable watch rendering, see above -->
1154     <!--
1155 zack 1768 <xsl:if test="$other/@watch='yes'">
1156     <li>
1157     <xsl:if test="$other/watch/@warning!=''">
1158     uscan had problems while searching for a new upstream version: <xsl:value-of select="$other/watch/@warning"/>
1159     </xsl:if>
1160     </li>
1161 hertzog 643 </xsl:if>
1162 zack 1817 -->
1163 zack 1823 <xsl:if test="$other[dehs/@error]">
1164     <li>The package has a <kbd>debian/watch</kbd> file, but the last
1165     attempt to use it for checking for newer upstream versions failed
1166     with
1167     <a href="http://dehs.alioth.debian.org/maintainer.php?name={$escaped-package}">an
1168     error</a>.</li>
1169     </xsl:if>
1170 hertzog 560
1171     <!-- Misc problems reported -->
1172 hertzog 347 <xsl:for-each select="$other/problems/item">
1173 zack 1768 <xsl:call-template name="outputitem"/>
1174 hertzog 347 </xsl:for-each>
1175     </xsl:if>
1176     </xsl:variable>
1177 hertzog 372 <xsl:if test="count($problems)>0 and string($problems)!=''">
1178 zack 1768 <tr class="titlerow">
1179     <td class="titlecell" id="problems">
1180     Problems
1181     </td></tr>
1182     <tr class="normalrow">
1183     <td class="contentcell2">
1184     <ul><xsl:copy-of select="$problems"/></ul>
1185     </td>
1186     </tr>
1187 hertzog 347 </xsl:if>
1188 zack 1768 </xsl:template>
1189 hertzog 347
1190 zack 1768 <xsl:template name="testing-status">
1191 zack 1866 <xsl:if test="$hasexcuse or $other/@transitions='yes'">
1192 zack 1768 <tr class="titlerow">
1193     <td class="titlecell">
1194 zack 1774 Testing status
1195 zack 1768 </td></tr>
1196 zack 1866 </xsl:if>
1197     <xsl:if test="$other/@transitions='yes'">
1198     <xsl:variable name="translist">
1199     <xsl:for-each select="$other/transitions/transition">
1200     <xsl:value-of select="@name" />
1201     <xsl:if test="position() != last()">
1202     <xsl:text> </xsl:text>
1203     </xsl:if>
1204     </xsl:for-each>
1205     </xsl:variable>
1206     <xsl:variable name="transno" select="count($other/transitions/transition)" />
1207 zack 1768 <tr class="normalrow">
1208     <td class="contentcell2" style="text-align: left">
1209 zack 1867 <ul>
1210     <!-- XXX unappropriate <ul>, just to make the text looks like other
1211     boxes, should be fixed on the CSS side (getting rid of <ul>) -->
1212     <li>This package is part of <em><xsl:value-of select="$transno" />
1213 zack 1866 ongoing testing transition<xsl:if test="$transno != '1'">s</xsl:if>
1214 zack 1867 </em> (namely: <tt><xsl:value-of select="$translist" /></tt>). For
1215     more information see the
1216 zack 1866 <a href="http://ftp-master.debian.org/transitions.yaml">transition
1217 zack 1868 status file</a>.<br />
1218 zack 1866 <em>Uploads to unstable will be rejected</em> while transitions are
1219     ongoing; you might want to upload to experimental in the
1220 zack 1868 meantime, or contact <tt><a href="mailto:debian-release@lists.debian.org">debian-release</a></tt>
1221     if an upload is really necessary.
1222     </li>
1223 zack 1867 </ul>
1224 zack 1866 </td>
1225     </tr>
1226     </xsl:if>
1227     <xsl:if test="$hasexcuse">
1228     <tr class="normalrow">
1229     <td class="contentcell2" style="text-align: left">
1230 zack 1768 <ul>
1231     <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
1232     <xsl:call-template name="outputitem"/>
1233     </xsl:for-each>
1234     </ul>
1235     </td>
1236     </tr>
1237 hertzog 347 </xsl:if>
1238 zack 1768 </xsl:template>
1239    
1240     <xsl:template name="static-info">
1241 zack 1745 <xsl:call-template name="output-static">
1242     <xsl:with-param name="static" select="$static" />
1243     </xsl:call-template>
1244 zack 1768 </xsl:template>
1245    
1246     <xsl:template name="latest-news">
1247 zack 1745 <xsl:call-template name="output-news">
1248     <xsl:with-param name="news" select="$news" />
1249     </xsl:call-template>
1250 zack 1768 </xsl:template>
1251 hertzog 347
1252 zack 1768 <xsl:variable name="static">
1253     <xsl:if test="$hasnews">
1254     <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
1255     <xsl:call-template name="outputitem"/>
1256     </xsl:for-each>
1257     </xsl:if>
1258     </xsl:variable>
1259    
1260     <xsl:variable name="news">
1261     <xsl:if test="$hasnews">
1262     <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
1263     <xsl:call-template name="outputitem"/>
1264     </xsl:for-each>
1265     </xsl:if>
1266     </xsl:variable>
1267    
1268     <!-- All the work is done in a single template -->
1269     <xsl:template match="source">
1270    
1271     <!-- Start of html -->
1272     <xsl:text disable-output-escaping="yes">
1273     &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;
1274     </xsl:text>
1275     <html>
1276     <head>
1277     <meta name="ROBOTS" content="NOFOLLOW"/>
1278 hertzog 1811 <link type="text/css" title="User selected" rel="stylesheet" href="../common/default.css"/>
1279     <link type="text/css" title="Official" rel="alternate stylesheet" href="../common/revamp.css"/>
1280 zack 1798 <link type="text/css" title="Legacy PTS" rel="alternate stylesheet" href="../common/pts.css"/>
1281 zack 1768 <link type="text/css" title="Compact rendering" rel="alternate stylesheet" href="../common/compact.css"/>
1282 hertzog 1811 <script type="text/javascript" src="../common/pts.js"></script>
1283 zack 1768 <xsl:if test="count($news)>0 and string($news)!=''">
1284     <link rel="alternate" type="application/rss+xml" title="RSS"
1285     href="{$package}/news.rss20.xml" />
1286     </xsl:if>
1287     <title>Overview of <xsl:value-of select="$package"/> source package</title>
1288     </head>
1289 hertzog 1811 <body onload="javascript:onLoad();">
1290 zack 1768
1291 hertzog 1811 <div id="quickforms" style="float: right;">
1292     <form method="get" action="/common/index.html">
1293     <p><span title="Jump to package">Go:</span>
1294 zack 1768 <input type="text" name="src" value=""/></p>
1295     </form>
1296 hertzog 1811 <form id="csspref-form" method="get" action="/common/set-csspref.php">
1297     <p>Switch style: <select name="csspref" onchange="javascript:onChangeStyle();">
1298     <option value="revamp.css">Default</option>
1299     <option value="compact.css">Compact</option>
1300     <option value="pts.css">Legacy</option>
1301     </select></p>
1302     </form>
1303    
1304     </div>
1305 zack 1768 <h1>Overview of
1306     <xsl:element name="a">
1307     <xsl:attribute name="href">
1308     <xsl:text>http://packages.debian.org/src:</xsl:text>
1309     <xsl:value-of select="$package"/>
1310     </xsl:attribute>
1311     <xsl:value-of select="$package"/>
1312     </xsl:element>
1313     source package</h1>
1314    
1315     <div id="body">
1316     <xsl:choose>
1317     <xsl:when test="$removed='yes'">
1318     <!-- REMOVED PACKAGE -->
1319     <p>This package is not part of any Debian distribution. Thus you won't
1320     find much information here. The package is either very new and hasn't
1321     appeared on mirrors yet, or it's an old package that eventually got removed.
1322     The old news are kept for historic purpose only.</p>
1323    
1324     <table class="righttable">
1325     <xsl:call-template name="static-info" />
1326     <xsl:call-template name="latest-news" />
1327 hertzog 347 </table>
1328 zack 1768
1329     <!-- END REMOVED PACKAGE -->
1330     </xsl:when>
1331     <xsl:otherwise>
1332     <!-- NON REMOVED PACKAGE -->
1333    
1334     <table class="containertable">
1335     <tr class="containerrow" valign="top">
1336     <td class="containercell">
1337     <!-- LEFT SIDE -->
1338     <table class="lefttable">
1339     <xsl:call-template name="general-information" />
1340     <xsl:call-template name="available-versions" />
1341 zack 1798 </table>
1342     <table class="lefttable">
1343 zack 1768 <xsl:call-template name="package-files" />
1344 zack 1798 <xsl:call-template name="binary-packages" />
1345 zack 1768 </table>
1346     <!-- END LEFT SIDE -->
1347     </td><td class="containercell">
1348     <!-- RIGHT SIDE -->
1349     <table class="righttable">
1350     <xsl:call-template name="todo-list" />
1351     <xsl:call-template name="problems" />
1352 zack 1798 </table>
1353     <table class="righttable">
1354 zack 1768 <xsl:call-template name="testing-status" />
1355     <xsl:call-template name="static-info" />
1356     <xsl:call-template name="latest-news" />
1357     </table>
1358 hertzog 347 <!-- END RIGHT SIDE -->
1359 zack 1798 </td><td class="containercell">
1360     <table class="lefttable">
1361     <xsl:call-template name="bugs-count" />
1362     <xsl:call-template name="pts-subscription" />
1363     </table>
1364     <table class="lefttable">
1365 hertzog 1887 <xsl:call-template name="other-links" />
1366 zack 1798 </table>
1367 hertzog 1889 <table class="lefttable" id="ubuntubox">
1368 hertzog 1887 <xsl:call-template name="ubuntu" />
1369 zack 1798 </table>
1370 hertzog 347 </td></tr>
1371     </table>
1372 hertzog 1303
1373     <!-- END NON REMOVED PACKAGE -->
1374     </xsl:otherwise>
1375     </xsl:choose>
1376    
1377 hertzog 347 <hr/>
1378 zack 1768 <div class="footer">
1379     <p>
1380 zack 1798 <a href="http://www.debian.org">Debian</a> Package Tracking System -
1381 zack 1814 Copyright 2002-2008 Raphaël Hertzog and others.<br/>
1382 zack 1768 Report problems to the <a href="http://bugs.debian.org/qa.debian.org"
1383 zack 1798 ><tt>qa.debian.org</tt> pseudopackage</a> in the <a
1384 myon 1894 href="http://bugs.debian.org">Debian <acronym
1385     title="Bug Tracking System">BTS</acronym></a>.<br/>
1386     Last modified: <xsl:value-of select="$date"/>.
1387 zack 1768 </p>
1388 zack 1763 </div>
1389 zack 1768 </div>
1390 hertzog 347 </body>
1391     </html>
1392     </xsl:template>
1393    
1394     </xsl:stylesheet>

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5