/[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 1081 by jeroen, Fri Aug 12 16:22:15 2005 UTC revision 1094 by djpig, Mon Sep 12 21:18:50 2005 UTC
# 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 93  Line 95 
95  <xsl:template match="source">  <xsl:template match="source">
96    
97    <!-- Start of html -->    <!-- Start of html -->
98      <xsl:text disable-output-escaping="yes">
99      &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;
100      </xsl:text>
101    <html>    <html>
102    <head>    <head>
103    <meta name="ROBOTS" content="NOFOLLOW"/>    <meta name="ROBOTS" content="NOFOLLOW"/>
# Line 104  Line 109 
109    
110    <form method="get" action="/common/index.html" style="float: right;">    <form method="get" action="/common/index.html" style="float: right;">
111    <!-- this link should make lynx/links happy [FG] -->    <!-- this link should make lynx/links happy [FG] -->
112    Jump to package (<a href="/">home page</a>): <br/>    <p>Jump to package (<a href="/">home page</a>): <br/>
113    <input type="text" name="src" value=""/>    <input type="text" name="src" value=""/></p>
114    </form>    </form>
115    <h1>Overview of <xsl:value-of select="$package"/> source package</h1>    <h1>Overview of
116      <xsl:element name="a">
117        <xsl:attribute name="href">
118          <xsl:text>http://packages.debian.org/src:</xsl:text>
119           <xsl:value-of select="$package"/>
120        </xsl:attribute>
121       <xsl:value-of select="$package"/>
122      </xsl:element>
123      source package</h1>
124    
125    <table class="containertable">    <table class="containertable">
126    <tr class="containerrow" valign="top">    <tr class="containerrow" valign="top">
# Line 272  Line 285 
285    <tr class="normalrow">    <tr class="normalrow">
286    <td class="contentcell" colspan="2">    <td class="contentcell" colspan="2">
287    <form method="post" action="/cgi-bin/pts.cgi">    <form method="post" action="/cgi-bin/pts.cgi">
288        <p>
289      <input type="hidden" name="package" value="{$package}"/>      <input type="hidden" name="package" value="{$package}"/>
290      <select name="what">      <select name="what">
291        <option value="subscribe">Subscribe</option>        <option value="subscribe">Subscribe</option>
# Line 280  Line 294 
294      </select>      </select>
295      <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=''}}"/>
296      <input type="submit" name="submit" value="Send"/>      <input type="submit" name="submit" value="Send"/>
297        </p>
298    </form>    </form>
299    </td>    </td>
300    </tr>    </tr>
# Line 290  Line 305 
305    </td></tr>    </td></tr>
306    <tr class="normalrow">    <tr class="normalrow">
307    <td class="normalcell" colspan="2" style="text-align: left">    <td class="normalcell" colspan="2" style="text-align: left">
308      <ul>
309    <xsl:for-each select="binary/item">    <xsl:for-each select="binary/item">
310      <xsl:sort select="text()"/>      <xsl:sort select="text()"/>
311      <xsl:variable name="pkg" select="text()"/>      <xsl:variable name="pkg" select="text()"/>
# Line 348  Line 364 
364      </span>      </span>
365      </li>      </li>
366    </xsl:for-each>    </xsl:for-each>
367    </td></tr>    </ul></td></tr>
368    
369    <tr class="titlerow">    <tr class="titlerow">
370    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
# Line 445  Line 461 
461    </tr>    </tr>
462    </xsl:if>    </xsl:if>
463    
464      <!-- secure-testing -->
465      <xsl:if test="$hassecure-testing">
466      <tr class="normalrow">
467      <td class="labelcell">Secure testing</td>
468      <td class="contentcell">
469      <xsl:value-of select="document(concat('../base/', $dir, '/secure-testing.xml'))/source/version"/>
470      </td>
471      </tr>
472      </xsl:if>
473    
474      <!-- volatile -->
475      <xsl:if test="$hasvolatile">
476      <tr class="normalrow">
477      <td class="labelcell">Volatile</td>
478      <td class="contentcell">
479      <xsl:value-of select="document(concat('../base/', $dir, '/volatile.xml'))/source/version"/>
480      </td>
481      </tr>
482      </xsl:if>
483    
484    <!-- Patches list [FG] -->    <!-- Patches list [FG] -->
485    <xsl:if test="$other/@patches='yes'">    <xsl:if test="$other/@patches='yes'">
486      <tr class="titlerow">      <tr class="titlerow">
# Line 453  Line 489 
489      </td></tr>      </td></tr>
490      <tr>      <tr>
491      <td class="contentcell" colspan="2" style="text-align: left">      <td class="contentcell" colspan="2" style="text-align: left">
492        <ul>
493      <xsl:for-each select="$other/patches/item">      <xsl:for-each select="$other/patches/item">
494        <li>        <li>
495          <a href="{$other/patches/item/@url}">Patch from <xsl:value-of select="$other/patches/item/@distro"/> for version <xsl:value-of select="$other/patches/item/@version"/></a>          <a href="{$other/patches/item/@url}">Patch from <xsl:value-of select="$other/patches/item/@distro"/> for version <xsl:value-of select="$other/patches/item/@version"/></a>
# Line 463  Line 500 
500          <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>          <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>
501        </li>        </li>
502      </xsl:if>      </xsl:if>
503        </ul>
504      </td>      </td>
505      </tr>      </tr>
506    </xsl:if>    </xsl:if>
# Line 474  Line 512 
512    </td></tr>    </td></tr>
513    <tr>    <tr>
514    <td class="contentcell" colspan="2" style="text-align: left">    <td class="contentcell" colspan="2" style="text-align: left">
515      <ul>
516    <li>    <li>
517      <xsl:element name="a">      <xsl:element name="a">
518        <xsl:attribute name="href">        <xsl:attribute name="href">
# Line 497  Line 536 
536        </xsl:attribute>        </xsl:attribute>
537        <xsl:text>Changelog</xsl:text>        <xsl:text>Changelog</xsl:text>
538      </xsl:element>      </xsl:element>
539        /
540        <xsl:element name="a">
541          <xsl:attribute name="href">
542            <xsl:text>http://packages.debian.org/changelogs/</xsl:text>
543            <xsl:value-of select="directory"/>
544            <xsl:text>/</xsl:text>
545            <xsl:call-template name="escape-name">
546              <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
547            </xsl:call-template>
548            <xsl:text>_</xsl:text>
549            <xsl:call-template name="escape-name">
550              <xsl:with-param name="text">
551                <xsl:call-template name="strip-epoch">
552                  <xsl:with-param name="version">
553                    <xsl:value-of select="version"/>
554                  </xsl:with-param>
555                </xsl:call-template>
556              </xsl:with-param>
557            </xsl:call-template>
558            <xsl:text>/copyright</xsl:text>
559          </xsl:attribute>
560          <xsl:text>Copyright</xsl:text>
561        </xsl:element>
562    </li>    </li>
563    <xsl:if test="architecture!='all'">    <xsl:if test="architecture!='all'">
564      <li>      <li>
# Line 592  Line 654 
654        <xsl:text>Popcon stats</xsl:text>        <xsl:text>Popcon stats</xsl:text>
655      </xsl:element>      </xsl:element>
656    </li>    </li>
657      </ul>
658    </td>    </td>
659    </tr>    </tr>
660    
# Line 612  Line 675 
675    </td></tr>    </td></tr>
676    <tr class="normalrow">    <tr class="normalrow">
677    <td class="normalcell" colspan="2" style="text-align: left">    <td class="normalcell" colspan="2" style="text-align: left">
678      <ul>
679    <xsl:for-each select="files/item">    <xsl:for-each select="files/item">
680      <li>      <li>
681      <xsl:element name="a">      <xsl:element name="a">
# Line 631  Line 695 
695      </xsl:element>      </xsl:element>
696      </li>      </li>
697    </xsl:for-each>    </xsl:for-each>
698    </td></tr>    </ul></td></tr>
699    
700    </table>    </table>
701    <!-- END LEFT SIDE -->    <!-- END LEFT SIDE -->
# Line 674  Line 738 
738    Todo    Todo
739    </td></tr>    </td></tr>
740    <tr class="normalrow">    <tr class="normalrow">
741    <td class="contentcell2"><xsl:copy-of select="$todo"/>    <td class="contentcell2">
742      <ul>
743      <xsl:copy-of select="$todo"/>
744      </ul>
745    </td>    </td>
746    </tr>    </tr>
747    </xsl:if>    </xsl:if>
# Line 793  Line 860 
860    Problems    Problems
861    </td></tr>    </td></tr>
862    <tr class="normalrow">    <tr class="normalrow">
863    <td class="contentcell2"><xsl:copy-of select="$problems"/>    <td class="contentcell2">
864      <ul><xsl:copy-of select="$problems"/></ul>
865    </td>    </td>
866    </tr>    </tr>
867    </xsl:if>    </xsl:if>
# Line 805  Line 873 
873    </td></tr>    </td></tr>
874    <tr class="normalrow">    <tr class="normalrow">
875    <td class="contentcell2" style="text-align: left">    <td class="contentcell2" style="text-align: left">
876      <ul>
877    <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">    <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
878      <xsl:call-template name="outputitem"/>      <xsl:call-template name="outputitem"/>
879    </xsl:for-each>    </xsl:for-each>
880      </ul>
881    </td>    </td>
882    </tr>    </tr>
883    </xsl:if>    </xsl:if>
# Line 826  Line 896 
896      Static Information      Static Information
897      </td></tr>      </td></tr>
898      <tr class="normalrow">      <tr class="normalrow">
899      <td class="contentcell2"><xsl:copy-of select="$static"/></td>      <td class="contentcell2">
900        <ul><xsl:copy-of select="$static"/></ul>
901        </td>
902      </tr>      </tr>
903    </xsl:if>    </xsl:if>
904    
# Line 843  Line 915 
915      Latest News      Latest News
916      </td></tr>      </td></tr>
917      <tr class="normalrow">      <tr class="normalrow">
918      <td class="contentcell2"><xsl:copy-of select="$news"/></td>      <td class="contentcell2">
919        <ul><xsl:copy-of select="$news"/></ul>
920        </td>
921      </tr>      </tr>
922    </xsl:if>    </xsl:if>
923    
# Line 852  Line 926 
926    </td></tr>    </td></tr>
927    </table>    </table>
928    <hr/>    <hr/>
929      <p>
930    Debian Package Tracking System - Copyright 2002-2005 Raphaël Hertzog<br/>    Debian Package Tracking System - Copyright 2002-2005 Raphaël Hertzog<br/>
931    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"
932    >qa.debian.org pseudopackage</a><br/>    >qa.debian.org pseudopackage</a><br/>
933    Last modified : <xsl:value-of select="$date"/>    Last modified : <xsl:value-of select="$date"/>
934      </p>
935    </body>    </body>
936    </html>    </html>
937  </xsl:template>  </xsl:template>

Legend:
Removed from v.1081  
changed lines
  Added in v.1094

  ViewVC Help
Powered by ViewVC 1.1.5