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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5