/[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 1301 by hertzog, Sun Mar 12 10:25:19 2006 UTC revision 1425 by hertzog, Sun Sep 24 09:05:09 2006 UTC
# Line 33  Line 33 
33    
34  <!-- Those variables controls the todo and problem item concerning  <!-- Those variables controls the todo and problem item concerning
35       standards-version not being up to date -->       standards-version not being up to date -->
36  <xsl:variable name="lastsv" select="'3.6.2'"/>  <xsl:variable name="lastsv" select="'3.7.2'"/>
37  <xsl:variable name="lastmajorsv" select="'3.'"/>  <xsl:variable name="lastmajorsv" select="'3.'"/>
38    
39  <!-- Named templates aka functions -->  <!-- Named templates aka functions -->
# Line 91  other-to-%xx, especially % to %25... For Line 91  other-to-%xx, especially % to %25... For
91    </xsl:if>    </xsl:if>
92  </xsl:template>  </xsl:template>
93    
94    <xsl:template name="add-vcs-info">
95      <xsl:if test="repository">
96        <tr>
97          <td class="labelcell">
98            <acronym title="Version Control System">VCS</acronym>
99          </td>
100          <td class="contentcell">
101            <xsl:element name="a">
102              <xsl:attribute name="href">
103                <xsl:value-of select="repository/kind/@href" />
104              </xsl:attribute>
105              <xsl:value-of select="repository/kind"/>
106            </xsl:element>
107            <xsl:text> </xsl:text>
108            <xsl:element name="a">
109              <xsl:attribute name="href">
110                <xsl:value-of select="repository/url" />
111              </xsl:attribute>
112              <xsl:attribute name="title">
113                <xsl:value-of select="repository/url" />
114              </xsl:attribute>
115              <xsl:text>repository</xsl:text>
116            </xsl:element>
117          </td>
118        </tr>
119      </xsl:if>
120    </xsl:template>
121    
122  <!-- All the work is done in a single template -->  <!-- All the work is done in a single template -->
123  <xsl:template match="source">  <xsl:template match="source">
# Line 123  other-to-%xx, especially % to %25... For Line 150  other-to-%xx, especially % to %25... For
150    </xsl:element>    </xsl:element>
151    source package</h1>    source package</h1>
152    
153      <xsl:choose>
154      <xsl:when test="$removed='yes'">
155      <!-- REMOVED PACKAGE -->
156      <p>This package is no longer part of any Debian distribution. Thus you won't
157      find much information here. The old news is kept for historic purpose only.</p>
158    
159      <table class="righttable">
160      <xsl:variable name="static">
161        <xsl:if test="$hasnews">
162          <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
163            <xsl:call-template name="outputitem"/>
164          </xsl:for-each>
165        </xsl:if>
166      </xsl:variable>
167      <xsl:if test="count($static)>0 and string($static)!=''">
168        <tr class="titlerow">
169        <td class="titlecell">
170        Static Information
171        </td></tr>
172        <tr class="normalrow">
173        <td class="contentcell2">
174        <ul><xsl:copy-of select="$static"/></ul>
175        </td>
176        </tr>
177      </xsl:if>
178    
179      <xsl:variable name="news">
180        <xsl:if test="$hasnews">
181          <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
182            <xsl:call-template name="outputitem"/>
183          </xsl:for-each>
184        </xsl:if>
185      </xsl:variable>
186      <xsl:if test="count($news)>0 and string($news)!=''">
187        <tr class="titlerow">
188        <td class="titlecell">
189        Latest News
190        </td></tr>
191        <tr class="normalrow">
192        <td class="contentcell2">
193        <ul><xsl:copy-of select="$news"/></ul>
194        </td>
195        </tr>
196      </xsl:if>
197      </table>
198    
199      <!-- END REMOVED PACKAGE -->
200      </xsl:when>
201      <xsl:otherwise>
202      <!-- NON REMOVED PACKAGE -->
203    
204    <table class="containertable">    <table class="containertable">
205    <tr class="containerrow" valign="top">    <tr class="containerrow" valign="top">
206    <td class="containercell">    <td class="containercell">
# Line 133  other-to-%xx, especially % to %25... For Line 211  other-to-%xx, especially % to %25... For
211    General Information    General Information
212    </td></tr>    </td></tr>
213    <tr class="normalrow">    <tr class="normalrow">
214    <td class="labelcell">Last version</td>    <td class="labelcell">Latest version</td>
215    <td class="contentcell"><xsl:value-of select="version"/></td>    <td class="contentcell"><xsl:value-of select="version"/></td>
216    </tr>    </tr>
217    <xsl:if test="@release!='unstable'">    <xsl:if test="@release!='unstable'">
# Line 186  other-to-%xx, especially % to %25... For Line 264  other-to-%xx, especially % to %25... For
264    <td class="labelcell">Priority &amp; Section</td>    <td class="labelcell">Priority &amp; Section</td>
265    <td class="contentcell"><xsl:value-of select="priority"/> - <xsl:value-of select="section"/></td>    <td class="contentcell"><xsl:value-of select="priority"/> - <xsl:value-of select="section"/></td>
266    </tr>    </tr>
267      <xsl:call-template name='add-vcs-info' />
268    <xsl:if test="architecture!='any' and architecture!='all'">    <xsl:if test="architecture!='any' and architecture!='all'">
269    <tr class="normalrow">    <tr class="normalrow">
270    <td class="labelcell">Architecture</td>    <td class="labelcell">Architecture</td>
# Line 537  other-to-%xx, especially % to %25... For Line 616  other-to-%xx, especially % to %25... For
616        <xsl:attribute name="href">        <xsl:attribute name="href">
617          <xsl:text>http://packages.debian.org/changelogs/</xsl:text>          <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
618          <xsl:value-of select="directory"/>          <xsl:value-of select="directory"/>
619          <xsl:text>/</xsl:text>          <xsl:text>/current/changelog</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>_</xsl:text>  
         <xsl:call-template name="escape-name">  
           <xsl:with-param name="text">  
             <xsl:call-template name="strip-epoch">  
               <xsl:with-param name="version">  
                 <xsl:value-of select="version"/>  
               </xsl:with-param>  
             </xsl:call-template>  
           </xsl:with-param>  
         </xsl:call-template>  
         <xsl:text>/changelog</xsl:text>  
620        </xsl:attribute>        </xsl:attribute>
621        <xsl:text>Changelog</xsl:text>        <xsl:text>Changelog</xsl:text>
622      </xsl:element>      </xsl:element>
# Line 560  other-to-%xx, especially % to %25... For Line 625  other-to-%xx, especially % to %25... For
625        <xsl:attribute name="href">        <xsl:attribute name="href">
626          <xsl:text>http://packages.debian.org/changelogs/</xsl:text>          <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
627          <xsl:value-of select="directory"/>          <xsl:value-of select="directory"/>
628          <xsl:text>/</xsl:text>          <xsl:text>/current/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>_</xsl:text>  
         <xsl:call-template name="escape-name">  
           <xsl:with-param name="text">  
             <xsl:call-template name="strip-epoch">  
               <xsl:with-param name="version">  
                 <xsl:value-of select="version"/>  
               </xsl:with-param>  
             </xsl:call-template>  
           </xsl:with-param>  
         </xsl:call-template>  
         <xsl:text>/copyright</xsl:text>  
629        </xsl:attribute>        </xsl:attribute>
630        <xsl:text>Copyright</xsl:text>        <xsl:text>Copyright</xsl:text>
631      </xsl:element>      </xsl:element>
# Line 588  other-to-%xx, especially % to %25... For Line 639  other-to-%xx, especially % to %25... For
639              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
640            </xsl:call-template>            </xsl:call-template>
641          </xsl:attribute>          </xsl:attribute>
642          <xsl:text>Buildd logs</xsl:text>          <xsl:text>Buildd logs (</xsl:text>
643          </xsl:element>
644          <xsl:element name="a">
645            <xsl:attribute name="href">
646              <xsl:text>http://experimental.debian.net/build.php?pkg=</xsl:text>
647              <xsl:call-template name="escape-name">
648                <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
649              </xsl:call-template>
650            </xsl:attribute>
651            <xsl:text>experimental</xsl:text>
652        </xsl:element>        </xsl:element>
653          <xsl:text>)</xsl:text>
654      </li>      </li>
655    </xsl:if>    </xsl:if>
656    <!-- DISABLED until ddtp.debian.org is back up    <!-- DISABLED until ddtp.debian.org is back up
# Line 802  other-to-%xx, especially % to %25... For Line 863  other-to-%xx, especially % to %25... For
863        and your package only follows        and your package only follows
864        <xsl:value-of select="standards-version"/>...</li>        <xsl:value-of select="standards-version"/>...</li>
865      </xsl:if>      </xsl:if>
866        <xsl:if test="@release!='unstable' and @release!='experimental'">
867          <li>This package is neither part of unstable nor experimental. This
868          probably means that the package <a
869          href="http://ftp-master.debian.org/removals.txt">has been removed</a> (or
870          has been renamed). Thus the information here is of little interest ...
871          the package is going to disappear unless someone takes it over and
872          reintroduces it into unstable.</li>
873        </xsl:if>
874      <xsl:if test="$hasother">      <xsl:if test="$hasother">
875    
876        <!-- Override disparity handling. [JvW] -->        <!-- Override disparity handling. [JvW] -->
# Line 957  other-to-%xx, especially % to %25... For Line 1026  other-to-%xx, especially % to %25... For
1026    <!-- END RIGHT SIDE -->    <!-- END RIGHT SIDE -->
1027    </td></tr>    </td></tr>
1028    </table>    </table>
1029    
1030      <!-- END NON REMOVED PACKAGE -->
1031      </xsl:otherwise>
1032      </xsl:choose>
1033    
1034    <hr/>    <hr/>
1035    <p>    <p>
1036    Debian Package Tracking System - Copyright 2002-2005 Raphaël Hertzog and    Debian Package Tracking System - Copyright 2002-2006 Raphaël Hertzog and
1037    others<br/>    others<br/>
1038    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"
1039    >qa.debian.org pseudopackage</a><br/>    >qa.debian.org pseudopackage</a><br/>

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

  ViewVC Help
Powered by ViewVC 1.1.5