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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5