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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5