/[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 1758 by zack, Fri Nov 30 18:22:09 2007 UTC revision 1759 by zack, Fri Nov 30 18:59:47 2007 UTC
# Line 195  other-to-%xx, especially % to %25... For Line 195  other-to-%xx, especially % to %25... For
195      components: dsc, diff, orig -->      components: dsc, diff, orig -->
196    <xsl:choose>    <xsl:choose>
197      <xsl:when test="substring(filename,string-length(filename)-2, 3)='dsc'">      <xsl:when test="substring(filename,string-length(filename)-2, 3)='dsc'">
198        <xsl:text>srcfile_dsc</xsl:text>        <xsl:text>dsc</xsl:text>
199      </xsl:when>      </xsl:when>
200      <xsl:when test="substring(filename,string-length(filename)-6, 7)='diff.gz'">      <xsl:when test="substring(filename,string-length(filename)-6, 7)='diff.gz'">
201        <xsl:text>srcfile_diff</xsl:text>        <xsl:text>diff</xsl:text>
202      </xsl:when>      </xsl:when>
203      <xsl:when test="substring(filename,string-length(filename)-10, 8)='orig.tar'">      <xsl:when test="substring(filename,string-length(filename)-10, 8)='orig.tar'">
204        <xsl:text>srcfile_orig</xsl:text>        <xsl:text>orig</xsl:text>
205      </xsl:when>      </xsl:when>
206      <xsl:otherwise><xsl:text></xsl:text></xsl:otherwise>      <xsl:otherwise><xsl:text></xsl:text></xsl:otherwise>
207    </xsl:choose>    </xsl:choose>
# Line 288  other-to-%xx, especially % to %25... For Line 288  other-to-%xx, especially % to %25... For
288    <table class="lefttable">    <table class="lefttable">
289    <tr class="titlerow">    <tr class="titlerow">
290    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
291    General Information    General information
292    </td></tr>    </td></tr>
293    <tr class="normalrow">    <tr class="normalrow">
294    <td class="labelcell">Latest version</td>    <td class="labelcell">Latest version</td>
# Line 355  other-to-%xx, especially % to %25... For Line 355  other-to-%xx, especially % to %25... For
355    
356    <tr class="titlerow">    <tr class="titlerow">
357    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
358    Bugs Count    Bugs count
359    </td></tr>    </td></tr>
360    <tr class="normalrow" id="bugs_all">    <tr class="normalrow" id="bugs_all">
361    <td class="labelcell">All bugs</td>    <td class="labelcell">All bugs</td>
# Line 471  other-to-%xx, especially % to %25... For Line 471  other-to-%xx, especially % to %25... For
471    
472    <tr class="titlerow">    <tr class="titlerow">
473    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
474    Binary Package(s)    Binary package(s)
475    </td></tr>    </td></tr>
476    <tr class="normalrow">    <tr class="normalrow">
477    <td class="normalcell" colspan="2" style="text-align: left">    <td class="normalcell" colspan="2" style="text-align: left">
# Line 836  other-to-%xx, especially % to %25... For Line 836  other-to-%xx, especially % to %25... For
836    
837    <tr class="titlerow">    <tr class="titlerow">
838    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
839    <xsl:element name="a">    Package files
     <xsl:attribute name="class">  
       <xsl:text>titlelink</xsl:text>  
     </xsl:attribute>  
     <xsl:attribute name="href">  
       <xsl:call-template name="mirror"/>  
       <xsl:text>/</xsl:text>  
       <xsl:value-of select="directory"/>  
       <xsl:text>/</xsl:text>  
     </xsl:attribute>  
     <xsl:text>Source files</xsl:text>  
   </xsl:element>  
840    </td></tr>    </td></tr>
841    <tr class="normalrow">    <tr class="titlerow">
842    <td class="normalcell" colspan="2" style="text-align: left">    <td class="labelcell">
843    <ul>      <xsl:element name="a">
844    <xsl:for-each select="files/item">        <xsl:attribute name="href">
845      <xsl:variable name="id">          <xsl:call-template name="mirror"/>
846        <xsl:call-template name="categorize-srcfile" />          <xsl:text>/</xsl:text>
847      </xsl:variable>          <xsl:value-of select="directory"/>
848      <xsl:element name="li">          <xsl:text>/</xsl:text>
849        <xsl:attribute name="class">srcfile</xsl:attribute>        </xsl:attribute>
850        <xsl:if test="string($id)!=''">        <xsl:text>Source files</xsl:text>
851          <xsl:attribute name="id"><xsl:value-of select="$id" /></xsl:attribute>      </xsl:element>
852        </xsl:if>    </td>
853        <xsl:element name="a">    <td class="contentcell" id="src_files">
854        <ul>
855        <xsl:for-each select="files/item">
856          <xsl:variable name="filetype">
857            <xsl:call-template name="categorize-srcfile" />
858          </xsl:variable>
859          <xsl:element name="li">
860          <xsl:attribute name="class">srcfile</xsl:attribute>          <xsl:attribute name="class">srcfile</xsl:attribute>
861          <xsl:attribute name="href">          <xsl:if test="string($filetype)!=''">
862            <xsl:call-template name="mirror"/>            <xsl:attribute name="id">
863            <xsl:text>/</xsl:text>              <xsl:text>srcfile_</xsl:text>
864            <xsl:value-of select="../../directory"/>              <xsl:value-of select="$filetype" />
865            <xsl:text>/</xsl:text>            </xsl:attribute>
866            <xsl:value-of select="filename"/>          </xsl:if>
867          </xsl:attribute>          <xsl:element name="a">
868          <xsl:attribute name="title">            <xsl:attribute name="class">srcfile</xsl:attribute>
869            <xsl:value-of select="size"/>            <xsl:attribute name="href">
870            <xsl:text> bytes</xsl:text>              <xsl:call-template name="mirror"/>
871          </xsl:attribute>              <xsl:text>/</xsl:text>
872          <xsl:value-of select="filename"/>              <xsl:value-of select="../../directory"/>
873                <xsl:text>/</xsl:text>
874                <xsl:value-of select="filename"/>
875              </xsl:attribute>
876              <xsl:attribute name="title">
877                <xsl:value-of select="filename" />
878                <xsl:text>: </xsl:text>
879                <xsl:value-of select="size"/>
880                <xsl:text> bytes</xsl:text>
881              </xsl:attribute>
882              <xsl:text>.</xsl:text>
883              <xsl:value-of select="$filetype"/>
884            </xsl:element>
885        </xsl:element>        </xsl:element>
886      </xsl:element>      </xsl:for-each>
887    </xsl:for-each>      </ul>
888    </ul></td></tr>    </td>
889      </tr>
890    
891    </table>    </table>
892    <!-- END LEFT SIDE -->    <!-- END LEFT SIDE -->

Legend:
Removed from v.1758  
changed lines
  Added in v.1759

  ViewVC Help
Powered by ViewVC 1.1.5