/[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 1169 by djpig, Mon Sep 12 21:18:50 2005 UTC revision 1170 by jeroen, Wed Nov 30 20:49:17 2005 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 64  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 161  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 640  Line 650 
650      </li>      </li>
651    </xsl:if>    </xsl:if>
652    <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->    <!-- convert maintainer/name to follow lintian.debian.org convention [FG] -->
653                                <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-/()&#34; ', &quot;'&quot;)"/>                                <xsl:variable name="pattern" select="concat('àáèéëêòöøîìùñ-/()&#34; ', &quot;'&quot;)"/>
654    <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '____________________')"/>    <xsl:variable name="_name" select="translate(maintainer/name, $pattern, '____________________')"/>
655      <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>
656    <li>    <li>
# Line 927  Line 937 
937    </table>    </table>
938    <hr/>    <hr/>
939    <p>    <p>
940    Debian Package Tracking System - Copyright 2002-2005 Raphaël Hertzog<br/>    Debian Package Tracking System - Copyright 2002-2005 Raphaël Hertzog and
941      others<br/>
942    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"
943    >qa.debian.org pseudopackage</a><br/>    >qa.debian.org pseudopackage</a><br/>
944    Last modified : <xsl:value-of select="$date"/>    Last modified : <xsl:value-of select="$date"/>

Legend:
Removed from v.1169  
changed lines
  Added in v.1170

  ViewVC Help
Powered by ViewVC 1.1.5