/[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 1757 by zack, Fri Nov 30 18:18:24 2007 UTC revision 1760 by zack, Fri Nov 30 19:14:08 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 374  other-to-%xx, especially % to %25... For Line 374  other-to-%xx, especially % to %25... For
374    </td>    </td>
375    </tr>    </tr>
376    <tr class="normalrow" id="bugs_rc">    <tr class="normalrow" id="bugs_rc">
377    <td class="labelcell">Release Critical</td>    <td class="labelcell"><span class="indented">Release Critical</span></td>
378    <td class="contentcell">    <td class="contentcell">
379    <xsl:element name="a">    <xsl:element name="a">
380      <xsl:attribute name="href">      <xsl:attribute name="href">
# Line 391  other-to-%xx, especially % to %25... For Line 391  other-to-%xx, especially % to %25... For
391    </td>    </td>
392    </tr>    </tr>
393    <tr class="normalrow" id="bugs_in">    <tr class="normalrow" id="bugs_in">
394    <td class="labelcell">Important and Normal</td>    <td class="labelcell"><span class="indented">Important and Normal</span></td>
395    <td class="contentcell">    <td class="contentcell">
396    <xsl:element name="a">    <xsl:element name="a">
397      <xsl:attribute name="href">      <xsl:attribute name="href">
# Line 408  other-to-%xx, especially % to %25... For Line 408  other-to-%xx, especially % to %25... For
408    </td>    </td>
409    </tr>    </tr>
410    <tr class="normalrow" id="bugs_mw">    <tr class="normalrow" id="bugs_mw">
411    <td class="labelcell">Minor and Wishlist</td>    <td class="labelcell"><span class="indented">Minor and Wishlist</span></td>
412    <td class="contentcell">    <td class="contentcell">
413    <xsl:element name="a">    <xsl:element name="a">
414      <xsl:attribute name="href">      <xsl:attribute name="href">
# Line 425  other-to-%xx, especially % to %25... For Line 425  other-to-%xx, especially % to %25... For
425    </td>    </td>
426    </tr>    </tr>
427    <tr class="normalrow" id="bugs_fp">    <tr class="normalrow" id="bugs_fp">
428    <td class="labelcell">Fixed and Pending</td>    <td class="labelcell"><span class="indented">Fixed and Pending</span></td>
429    <td class="contentcell">    <td class="contentcell">
430    <xsl:element name="a">    <xsl:element name="a">
431      <xsl:attribute name="href">      <xsl:attribute name="href">
# 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">
   <ul>  
   <xsl:for-each select="files/item">  
     <xsl:variable name="id">  
       <xsl:call-template name="categorize-srcfile" />  
     </xsl:variable>  
     <li class="srcfile">  
843      <xsl:element name="a">      <xsl:element name="a">
       <xsl:attribute name="class">srcfile</xsl:attribute>  
       <xsl:if test="string($id)!=''">  
         <xsl:attribute name="id"><xsl:value-of select="$id" /></xsl:attribute>  
       </xsl:if>  
844        <xsl:attribute name="href">        <xsl:attribute name="href">
845          <xsl:call-template name="mirror"/>          <xsl:call-template name="mirror"/>
846          <xsl:text>/</xsl:text>          <xsl:text>/</xsl:text>
847          <xsl:value-of select="../../directory"/>          <xsl:value-of select="directory"/>
848          <xsl:text>/</xsl:text>          <xsl:text>/</xsl:text>
         <xsl:value-of select="filename"/>  
       </xsl:attribute>  
       <xsl:attribute name="title">  
         <xsl:value-of select="size"/>  
         <xsl:text> bytes</xsl:text>  
849        </xsl:attribute>        </xsl:attribute>
850        <xsl:value-of select="filename"/>        <xsl:text>Source files</xsl:text>
851      </xsl:element>      </xsl:element>
852      </li>    </td>
853    </xsl:for-each>    <td class="contentcell" id="src_files">
854    </ul></td></tr>      <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>
861            <xsl:if test="string($filetype)!=''">
862              <xsl:attribute name="id">
863                <xsl:text>srcfile_</xsl:text>
864                <xsl:value-of select="$filetype" />
865              </xsl:attribute>
866            </xsl:if>
867            <xsl:element name="a">
868              <xsl:attribute name="class">srcfile</xsl:attribute>
869              <xsl:attribute name="href">
870                <xsl:call-template name="mirror"/>
871                <xsl:text>/</xsl:text>
872                <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>
886        </xsl:for-each>
887        </ul>
888      </td>
889      </tr>
890    
891    </table>    </table>
892    <!-- END LEFT SIDE -->    <!-- END LEFT SIDE -->

Legend:
Removed from v.1757  
changed lines
  Added in v.1760

  ViewVC Help
Powered by ViewVC 1.1.5