/[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 1087 by djpig, Sat Sep 10 17:14:16 2005 UTC revision 1301 by hertzog, Sun Mar 12 10:25:19 2006 UTC
# Line 1  Line 1 
1  <?xml version="1.0" encoding="ISO-8859-1" ?>  <?xml version="1.0" encoding="utf-8" ?>
2    
3  <!--  <!--
4  # Copyright 2002-2003 Raphaël Hertzog  # Copyright 2002-2005 Raphaël Hertzog and others
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 24  Line 24 
24  <xsl:param name="hasoldstable-security" select="''"/>  <xsl:param name="hasoldstable-security" select="''"/>
25  <xsl:param name="hasstable-security" select="''"/>  <xsl:param name="hasstable-security" select="''"/>
26  <xsl:param name="hastesting-security" select="''"/>  <xsl:param name="hastesting-security" select="''"/>
27    <xsl:param name="hassecure-testing" select="''"/>
28    <xsl:param name="hasvolatile" select="''"/>
29  <xsl:param name="hasnews" select="''"/>  <xsl:param name="hasnews" select="''"/>
30  <xsl:param name="hasexcuse" select="''"/>  <xsl:param name="hasexcuse" select="''"/>
31    
# Line 62  Line 64 
64    </xsl:choose>    </xsl:choose>
65  </xsl:template>  </xsl:template>
66    
67  <!-- Convert + in %2b for URL escaping ... -->  <!-- Convert + in %2b for URL escaping. Should actually first also do
68    other-to-%xx, especially % to %25... Fortunately, that's rare -->
69  <xsl:template name="escape-name">  <xsl:template name="escape-name">
70    <xsl:param name="text"/>    <xsl:param name="text"/>
71    <xsl:if test="contains($text,'+')">    <xsl:if test="contains($text,'+')">
# Line 94  Line 97 
97    
98    <!-- Start of html -->    <!-- Start of html -->
99    <xsl:text disable-output-escaping="yes">    <xsl:text disable-output-escaping="yes">
100    &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&gt;    &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;
101    </xsl:text>    </xsl:text>
102    <html>    <html>
103    <head>    <head>
# Line 107  Line 110 
110    
111    <form method="get" action="/common/index.html" style="float: right;">    <form method="get" action="/common/index.html" style="float: right;">
112    <!-- this link should make lynx/links happy [FG] -->    <!-- this link should make lynx/links happy [FG] -->
113    Jump to package (<a href="/">home page</a>): <br/>    <p>Jump to package (<a href="/">home page</a>): <br/>
114    <input type="text" name="src" value=""/>    <input type="text" name="src" value=""/></p>
115    </form>    </form>
116    <h1>Overview of    <h1>Overview of
117    <xsl:element name="a">    <xsl:element name="a">
# Line 159  Line 162 
162    <td class="contentcell">    <td class="contentcell">
163    <xsl:if test="uploaders">    <xsl:if test="uploaders">
164      <xsl:for-each select="uploaders/item">      <xsl:for-each select="uploaders/item">
165        <a class="email" href="http://qa.debian.org/developer.php?login={email}"><xsl:value-of select="name"/></a> [<a class="email" href="mailto:{email}">mail</a>]<br/>        <xsl:element name="a">
166            <xsl:attribute name="href">
167              <xsl:text>http://qa.debian.org/developer.php?login=</xsl:text>
168              <xsl:call-template name="escape-name">
169                <xsl:with-param name="text"><xsl:value-of select="email"/></xsl:with-param>
170              </xsl:call-template>
171            </xsl:attribute>
172            <xsl:value-of select="name"/>
173          </xsl:element>
174          [<a class="email" href="mailto:{email}">mail</a>]<br/>
175      </xsl:for-each>      </xsl:for-each>
176    </xsl:if>    </xsl:if>
177    <xsl:if test="not(uploaders)">    <xsl:if test="not(uploaders)">
# Line 283  Line 295 
295    <tr class="normalrow">    <tr class="normalrow">
296    <td class="contentcell" colspan="2">    <td class="contentcell" colspan="2">
297    <form method="post" action="/cgi-bin/pts.cgi">    <form method="post" action="/cgi-bin/pts.cgi">
298        <p>
299      <input type="hidden" name="package" value="{$package}"/>      <input type="hidden" name="package" value="{$package}"/>
300      <select name="what">      <select name="what">
301        <option value="subscribe">Subscribe</option>        <option value="subscribe">Subscribe</option>
# Line 291  Line 304 
304      </select>      </select>
305      <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>      <input type="text" name="email" size="15" value="your email" onFocus="if(email.value=='your email'){{email.value=''}}"/>
306      <input type="submit" name="submit" value="Send"/>      <input type="submit" name="submit" value="Send"/>
307        </p>
308    </form>    </form>
309    </td>    </td>
310    </tr>    </tr>
# Line 457  Line 471 
471    </tr>    </tr>
472    </xsl:if>    </xsl:if>
473    
474      <!-- secure-testing -->
475      <xsl:if test="$hassecure-testing">
476      <tr class="normalrow">
477      <td class="labelcell">Secure testing</td>
478      <td class="contentcell">
479      <xsl:value-of select="document(concat('../base/', $dir, '/secure-testing.xml'))/source/version"/>
480      </td>
481      </tr>
482      </xsl:if>
483    
484      <!-- volatile -->
485      <xsl:if test="$hasvolatile">
486      <tr class="normalrow">
487      <td class="labelcell">Volatile</td>
488      <td class="contentcell">
489      <xsl:value-of select="document(concat('../base/', $dir, '/volatile.xml'))/source/version"/>
490      </td>
491      </tr>
492      </xsl:if>
493    
494    <!-- Patches list [FG] -->    <!-- Patches list [FG] -->
495    <xsl:if test="$other/@patches='yes'">    <xsl:if test="$other/@patches='yes'">
496      <tr class="titlerow">      <tr class="titlerow">
# Line 473  Line 507 
507      </xsl:for-each>      </xsl:for-each>
508      <xsl:if test="$other/bugs/@patch!='0'">      <xsl:if test="$other/bugs/@patch!='0'">
509        <li>        <li>
510          <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&amp;include=patch&amp;exclude=pending">Patches from BTS (<xsl:value-of select="$other/bugs/@patch"/>)</a>          <xsl:element name="a">
511              <xsl:attribute name="href">
512                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
513                <xsl:call-template name="escape-name">
514                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
515                </xsl:call-template>
516                <xsl:text>&amp;include=patch&amp;exclude=pending</xsl:text>
517              </xsl:attribute>
518              Patches from BTS (<xsl:value-of select="$other/bugs/@patch"/>)
519            </xsl:element>
520        </li>        </li>
521      </xsl:if>      </xsl:if>
522      </ul>      </ul>
# Line 531  Line 574 
574              </xsl:call-template>              </xsl:call-template>
575            </xsl:with-param>            </xsl:with-param>
576          </xsl:call-template>          </xsl:call-template>
577          <xsl:text>/</xsl:text>          <xsl:text>/copyright</xsl:text>
         <xsl:call-template name="escape-name">  
                 <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>  
         </xsl:call-template>  
         <xsl:text>.copyright</xsl:text>  
578        </xsl:attribute>        </xsl:attribute>
579        <xsl:text>Copyright</xsl:text>        <xsl:text>Copyright</xsl:text>
580      </xsl:element>      </xsl:element>
# Line 620  Line 659 
659      </li>      </li>
660    </xsl:if>    </xsl:if>
661    <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->    <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->
662                                <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-/()&#34; ', &quot;'&quot;)"/>                                <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-~/()&#34; ', &quot;'&quot;)"/>
663    <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '____________________')"/>    <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '_____________________')"/>
664      <li><a href="http://lintian.debian.org/reports/m{$_name}.html#{$package}">Lintian report</a></li>      <li><a href="http://lintian.debian.org/reports/m{$_name}.html#{$package}">Lintian report</a></li>
665    <li>    <li>
666      <xsl:element name="a">      <xsl:element name="a">
# Line 708  Line 747 
747             (<xsl:value-of select="$other/watch/@new"/>). <a href="{$other/watch/@url}"><xsl:value-of select="$other/watch/@url"/></a></li>             (<xsl:value-of select="$other/watch/@new"/>). <a href="{$other/watch/@url}"><xsl:value-of select="$other/watch/@url"/></a></li>
748        </xsl:if>        </xsl:if>
749        <xsl:if test="$other/bugs/@patch!='0'">        <xsl:if test="$other/bugs/@patch!='0'">
750          <li>The Bug Tracking System contains <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&amp;include=patch&amp;exclude=pending"><xsl:value-of select="$other/bugs/@patch"/> patch(es)</a>, you should include it(them).</li>          <li>The Bug Tracking System contains
751            <xsl:element name="a">
752              <xsl:attribute name="href">
753                <xsl:text>http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data=</xsl:text>
754                <xsl:call-template name="escape-name">
755                  <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
756                </xsl:call-template>
757                <xsl:text>&amp;include=patch&amp;exclude=pending</xsl:text>
758              </xsl:attribute>
759              <xsl:value-of select="$other/bugs/@patch"/> patch<xsl:if test="$other/bugs/@patch!='1'">es</xsl:if>
760            </xsl:element>, you should include
761            <xsl:if test="$other/bugs/@patch!='1'">them</xsl:if>
762            <xsl:if test="$other/bugs/@patch='1'">it</xsl:if>.
763            </li>
764        </xsl:if>        </xsl:if>
765      </xsl:if>      </xsl:if>
766    </xsl:variable>    </xsl:variable>
# Line 906  Line 958 
958    </td></tr>    </td></tr>
959    </table>    </table>
960    <hr/>    <hr/>
961    Debian Package Tracking System - Copyright 2002-2005 Raphaël Hertzog<br/>    <p>
962      Debian Package Tracking System - Copyright 2002-2005 Raphaël Hertzog and
963      others<br/>
964    Report problems to the <a href="http://bugs.debian.org/qa.debian.org"    Report problems to the <a href="http://bugs.debian.org/qa.debian.org"
965    >qa.debian.org pseudopackage</a><br/>    >qa.debian.org pseudopackage</a><br/>
966    Last modified : <xsl:value-of select="$date"/>    Last modified : <xsl:value-of select="$date"/>
967      </p>
968    </body>    </body>
969    </html>    </html>
970  </xsl:template>  </xsl:template>

Legend:
Removed from v.1087  
changed lines
  Added in v.1301

  ViewVC Help
Powered by ViewVC 1.1.5