/[qa]/trunk/pts/www/xsl/pts.xsl
ViewVC logotype

Diff of /trunk/pts/www/xsl/pts.xsl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 529 by hertzog, Thu Mar 13 20:32:47 2003 UTC revision 530 by hertzog, Thu Mar 13 21:40:13 2003 UTC
# Line 1  Line 1 
1  <?xml version="1.0" encoding="ISO-8859-1" ?>  <?xml version="1.0" encoding="ISO-8859-1" ?>
2    
3  <!--  <!--
4  # Copyright 2002 Raphaël Hertzog  # Copyright 2002-2003 Raphaël Hertzog
5  # This file is distributed under the terms of the General Public License  # This file is distributed under the terms of the General Public License
6  # version 2 or (at your option) any later version.  # version 2 or (at your option) any later version.
7  -->  -->
# Line 63  Line 63 
63    </xsl:choose>    </xsl:choose>
64  </xsl:template>  </xsl:template>
65    
66    <!-- Convert + in %2b for URL escaping ... -->
67    <xsl:template name="escape-name">
68      <xsl:param name="text"/>
69      <xsl:if test="contains($text,'+')">
70        <xsl:value-of select="substring-before($text,'+')"/>
71        <xsl:text>%2b</xsl:text>
72        <xsl:call-template name="escape-name">
73        <xsl:with-param name="text"><xsl:value-of select="substring-after($text,'+')"/></xsl:with-param>
74        </xsl:call-template>
75      </xsl:if>
76      <xsl:if test="not(contains($text,'+'))">
77        <xsl:value-of select="$text"/>
78      </xsl:if>
79    </xsl:template>
80    
81    
82  <!-- All the work is done in a single template -->  <!-- All the work is done in a single template -->
83  <xsl:template match="source">  <xsl:template match="source">
84    
# Line 144  Line 160 
160    <tr class="normalrow">    <tr class="normalrow">
161    <td class="labelcell">Release Critical</td>    <td class="labelcell">Release Critical</td>
162    <td class="contentcell">    <td class="contentcell">
163    <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&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:if test="$hasother">    <xsl:element name="a">
164      <xsl:value-of select="$other/bugs/@rc"/>      <xsl:attribute name="href">
165    </xsl:if></a>        <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
166          <xsl:call-template name="escape-name">
167            <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
168          </xsl:call-template>
169          <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>
170        </xsl:attribute>
171        <xsl:if test="$hasother">
172          <xsl:value-of select="$other/bugs/@rc"/>
173        </xsl:if>
174      </xsl:element>
175    </td>    </td>
176    </tr>    </tr>
177    <tr class="normalrow">    <tr class="normalrow">
178    <td class="labelcell">Important and Normal</td>    <td class="labelcell">Important and Normal</td>
179    <td class="contentcell">    <td class="contentcell">
180    <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&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:if test="$hasother">    <xsl:element name="a">
181      <xsl:value-of select="$other/bugs/@normal"/>      <xsl:attribute name="href">
182    </xsl:if></a>        <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
183          <xsl:call-template name="escape-name">
184            <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
185          </xsl:call-template>
186          <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>
187        </xsl:attribute>
188        <xsl:if test="$hasother">
189          <xsl:value-of select="$other/bugs/@normal"/>
190        </xsl:if>
191      </xsl:element>
192    </td>    </td>
193    </tr>    </tr>
194    <tr class="normalrow">    <tr class="normalrow">
195    <td class="labelcell">Minor and Wishlist</td>    <td class="labelcell">Minor and Wishlist</td>
196    <td class="contentcell">    <td class="contentcell">
197    <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&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:if test="$hasother">    <xsl:element name="a">
198      <xsl:value-of select="$other/bugs/@wishlist"/>      <xsl:attribute name="href">
199    </xsl:if></a>        <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
200          <xsl:call-template name="escape-name">
201            <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
202          </xsl:call-template>
203          <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>
204        </xsl:attribute>
205        <xsl:if test="$hasother">
206          <xsl:value-of select="$other/bugs/@wishlist"/>
207        </xsl:if>
208      </xsl:element>
209    </td>    </td>
210    </tr>    </tr>
211    <tr class="normalrow">    <tr class="normalrow">
212    <td class="labelcell">Fixed and Pending</td>    <td class="labelcell">Fixed and Pending</td>
213    <td class="contentcell">    <td class="contentcell">
214    <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed"><xsl:if test="$hasother">    <xsl:element name="a">
215      <xsl:value-of select="$other/bugs/@fixed"/>      <xsl:attribute name="href">
216    </xsl:if></a>        <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
217          <xsl:call-template name="escape-name">
218            <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
219          </xsl:call-template>
220          <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
221        </xsl:attribute>
222        <xsl:if test="$hasother">
223          <xsl:value-of select="$other/bugs/@fixed"/>
224        </xsl:if>
225      </xsl:element>
226    </td>    </td>
227    </tr>    </tr>
228    
# Line 212  Line 264 
264      <a href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>      <a href="http://packages.debian.org/{text()}"><xsl:value-of select="text()"/></a>
265      <span style="font-size: 70%">      <span style="font-size: 70%">
266      (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:      (<a href="http://bugs.debian.org/{text()}"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@all"/> bugs</a>:
267    <a title="critical, grave and serious" href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data={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:value-of select="$other/bugs/item[@name=$pkg]/@rc"/></a>,  
268    <a title="important and normal" href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data={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:value-of select="$other/bugs/item[@name=$pkg]/@normal"/></a>,        <xsl:element name="a">
269    <a title="wishlist and minor" href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data={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:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/></a>,          <xsl:attribute name="title">critical, grave and serious</xsl:attribute>
270    <a title="pending and fixed" href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data={text()}&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed"><xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/></a>)          <xsl:attribute name="href">
271              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
272              <xsl:call-template name="escape-name">
273                <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
274              </xsl:call-template>
275              <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>
276            </xsl:attribute>
277            <xsl:value-of select="$other/bugs/item[@name=$pkg]/@rc"/>
278          </xsl:element>,
279    
280          <xsl:element name="a">
281            <xsl:attribute name="title">important and normal</xsl:attribute>
282            <xsl:attribute name="href">
283            <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
284            <xsl:call-template name="escape-name">
285              <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
286            </xsl:call-template>
287            <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>
288            </xsl:attribute>
289            <xsl:value-of select="$other/bugs/item[@name=$pkg]/@normal"/>
290          </xsl:element>,
291    
292          <xsl:element name="a">
293            <xsl:attribute name="title">wishlist and minor</xsl:attribute>
294            <xsl:attribute name="href">
295              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
296              <xsl:call-template name="escape-name">
297                <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
298              </xsl:call-template>
299              <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>
300            </xsl:attribute>
301            <xsl:value-of select="$other/bugs/item[@name=$pkg]/@wishlist"/>
302          </xsl:element>,
303    
304          <xsl:element name="a">
305            <xsl:attribute name="title">pending and fixed</xsl:attribute>
306            <xsl:attribute name="href">
307              <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=pkg&amp;data=</xsl:text>
308              <xsl:call-template name="escape-name">
309                <xsl:with-param name="text"><xsl:value-of select="text()"/></xsl:with-param>
310              </xsl:call-template>
311              <xsl:text>&amp;archive=no&amp;pend-inc=pending-fixed&amp;pend-inc=fixed</xsl:text>
312            </xsl:attribute>
313            <xsl:value-of select="$other/bugs/item[@name=$pkg]/@fixed"/>
314          </xsl:element>)
315      </span>      </span>
316      </li>      </li>
317    </xsl:for-each>    </xsl:for-each>
# Line 472  Line 568 
568    to setup the required scripts. Those scripts will automatically update the    to setup the required scripts. Those scripts will automatically update the
569    "Latest News" and they'll let you add your own news items. Please be patient.    "Latest News" and they'll let you add your own news items. Please be patient.
570    <hr/>    <hr/>
571    Debian Package Tracking System - Copyright 2002 Raphaël Hertzog<br/>    Debian Package Tracking System - Copyright 2002-2003 Raphaël Hertzog<br/>
572    Last modified : <xsl:value-of select="$date"/>    Last modified : <xsl:value-of select="$date"/>
573    </body>    </body>
574    </html>    </html>

Legend:
Removed from v.529  
changed lines
  Added in v.530

  ViewVC Help
Powered by ViewVC 1.1.5