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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5