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

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.5