/[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 1047 by hertzog, Tue Jul 19 22:09:15 2005 UTC revision 1091 by djpig, Sat Sep 10 18:06:22 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 425  Line 441 
441    </tr>    </tr>
442    </xsl:if>    </xsl:if>
443    
444    <!-- unstablej -->    <!-- unstable -->
445    <xsl:if test="$hasunstable">    <xsl:if test="$hasunstable">
446    <tr class="normalrow">    <tr class="normalrow">
447    <td class="labelcell">Unstable</td>    <td class="labelcell">Unstable</td>
# 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] -->
485      <xsl:if test="$other/@patches='yes'">
486        <tr class="titlerow">
487        <td class="titlecell" colspan="2">
488        Patches
489        </td></tr>
490        <tr>
491        <td class="contentcell" colspan="2" style="text-align: left">
492        <ul>
493        <xsl:for-each select="$other/patches/item">
494          <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>
496          </li>
497        </xsl:for-each>
498        <xsl:if test="$other/bugs/@patch!='0'">
499          <li>
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>
501          </li>
502        </xsl:if>
503        </ul>
504        </td>
505        </tr>
506      </xsl:if>
507    
508    
509    <tr class="titlerow">    <tr class="titlerow">
510    <td class="titlecell" colspan="2">    <td class="titlecell" colspan="2">
511    Other links    Other links
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 474  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>/</xsl:text>
559            <xsl:call-template name="escape-name">
560                    <xsl:with-param name="text"><xsl:value-of select="$package"/></xsl:with-param>
561            </xsl:call-template>
562            <xsl:text>.copyright</xsl:text>
563          </xsl:attribute>
564          <xsl:text>Copyright</xsl:text>
565        </xsl:element>
566    </li>    </li>
567    <xsl:if test="architecture!='all'">    <xsl:if test="architecture!='all'">
568      <li>      <li>
# Line 569  Line 658 
658        <xsl:text>Popcon stats</xsl:text>        <xsl:text>Popcon stats</xsl:text>
659      </xsl:element>      </xsl:element>
660    </li>    </li>
661      </ul>
662    </td>    </td>
663    </tr>    </tr>
664    
# Line 589  Line 679 
679    </td></tr>    </td></tr>
680    <tr class="normalrow">    <tr class="normalrow">
681    <td class="normalcell" colspan="2" style="text-align: left">    <td class="normalcell" colspan="2" style="text-align: left">
682      <ul>
683    <xsl:for-each select="files/item">    <xsl:for-each select="files/item">
684      <li>      <li>
685      <xsl:element name="a">      <xsl:element name="a">
# Line 608  Line 699 
699      </xsl:element>      </xsl:element>
700      </li>      </li>
701    </xsl:for-each>    </xsl:for-each>
702    </td></tr>    </ul></td></tr>
703    
704    </table>    </table>
705    <!-- END LEFT SIDE -->    <!-- END LEFT SIDE -->
# Line 641  Line 732 
732             (<xsl:value-of select="$other/watch/@new"/>). <a href="{$other/watch/@url}"><xsl:value-of select="$other/watch/@url"/></a></li>             (<xsl:value-of select="$other/watch/@new"/>). <a href="{$other/watch/@url}"><xsl:value-of select="$other/watch/@url"/></a></li>
733        </xsl:if>        </xsl:if>
734        <xsl:if test="$other/bugs/@patch!='0'">        <xsl:if test="$other/bugs/@patch!='0'">
735          <li>There are <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&amp;include=patch&amp;exclude=pending">patches in the BTS</a>, you should include them.</li>          <li>The Bug Tracking System contains <a href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?which=src&amp;data={$package}&amp;include=patch&amp;exclude=pending"><xsl:value-of select="$other/bugs/@patch"/> patch(es)</a>, you should include it(them).</li>
736        </xsl:if>        </xsl:if>
737      </xsl:if>      </xsl:if>
738    </xsl:variable>    </xsl:variable>
# Line 651  Line 742 
742    Todo    Todo
743    </td></tr>    </td></tr>
744    <tr class="normalrow">    <tr class="normalrow">
745    <td class="contentcell2"><xsl:copy-of select="$todo"/>    <td class="contentcell2">
746      <ul>
747      <xsl:copy-of select="$todo"/>
748      </ul>
749    </td>    </td>
750    </tr>    </tr>
751    </xsl:if>    </xsl:if>
# Line 770  Line 864 
864    Problems    Problems
865    </td></tr>    </td></tr>
866    <tr class="normalrow">    <tr class="normalrow">
867    <td class="contentcell2"><xsl:copy-of select="$problems"/>    <td class="contentcell2">
868      <ul><xsl:copy-of select="$problems"/></ul>
869    </td>    </td>
870    </tr>    </tr>
871    </xsl:if>    </xsl:if>
# Line 782  Line 877 
877    </td></tr>    </td></tr>
878    <tr class="normalrow">    <tr class="normalrow">
879    <td class="contentcell2" style="text-align: left">    <td class="contentcell2" style="text-align: left">
880      <ul>
881    <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">    <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
882      <xsl:call-template name="outputitem"/>      <xsl:call-template name="outputitem"/>
883    </xsl:for-each>    </xsl:for-each>
884      </ul>
885    </td>    </td>
886    </tr>    </tr>
887    </xsl:if>    </xsl:if>
# Line 803  Line 900 
900      Static Information      Static Information
901      </td></tr>      </td></tr>
902      <tr class="normalrow">      <tr class="normalrow">
903      <td class="contentcell2"><xsl:copy-of select="$static"/></td>      <td class="contentcell2">
904        <ul><xsl:copy-of select="$static"/></ul>
905        </td>
906      </tr>      </tr>
907    </xsl:if>    </xsl:if>
908    
# Line 820  Line 919 
919      Latest News      Latest News
920      </td></tr>      </td></tr>
921      <tr class="normalrow">      <tr class="normalrow">
922      <td class="contentcell2"><xsl:copy-of select="$news"/></td>      <td class="contentcell2">
923        <ul><xsl:copy-of select="$news"/></ul>
924        </td>
925      </tr>      </tr>
926    </xsl:if>    </xsl:if>
927    
# Line 829  Line 930 
930    </td></tr>    </td></tr>
931    </table>    </table>
932    <hr/>    <hr/>
933    Debian Package Tracking System - Copyright 2002-2004 Raphaël Hertzog<br/>    <p>
934      Debian Package Tracking System - Copyright 2002-2005 Raphaël Hertzog<br/>
935      Report problems to the <a href="http://bugs.debian.org/qa.debian.org"
936      >qa.debian.org pseudopackage</a><br/>
937    Last modified : <xsl:value-of select="$date"/>    Last modified : <xsl:value-of select="$date"/>
938      </p>
939    </body>    </body>
940    </html>    </html>
941  </xsl:template>  </xsl:template>

Legend:
Removed from v.1047  
changed lines
  Added in v.1091

  ViewVC Help
Powered by ViewVC 1.1.5