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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5