/[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 356 by hertzog, Sun Aug 25 21:48:43 2002 UTC revision 357 by hertzog, Sun Sep 1 17:37:49 2002 UTC
# Line 22  Line 22 
22  <xsl:param name="hast-p-u" select="''"/>  <xsl:param name="hast-p-u" select="''"/>
23  <xsl:param name="hasstable-security" select="''"/>  <xsl:param name="hasstable-security" select="''"/>
24  <xsl:param name="hastesting-security" select="''"/>  <xsl:param name="hastesting-security" select="''"/>
25    <xsl:param name="hasnews" select="''"/>
26    <xsl:param name="hasexcuse" select="''"/>
27    
 <xsl:variable name="exc" select="document('../base/update_excuses.xml')/excuses"/>  
28  <xsl:variable name="other" select="document(concat('../base/', $dir, '/other.xml'))/other"/>  <xsl:variable name="other" select="document(concat('../base/', $dir, '/other.xml'))/other"/>
29    
30  <!-- Those variables controls the todo and problem item concerning  <!-- Those variables controls the todo and problem item concerning
31       standards-version not being up to date -->       standards-version not being up to date -->
32  <xsl:variable name="lastsv" select="'3.5.6'"/>  <xsl:variable name="lastsv" select="'3.5.7'"/>
33  <xsl:variable name="lastmajorsv" select="'3.'"/>  <xsl:variable name="lastmajorsv" select="'3.'"/>
34  <!-- More variables -->  <!-- More variables -->
35  <xsl:variable name="ptsurl" select="'http://pts.debian.net'"/>  <xsl:variable name="ptsurl" select="'http://pts.debian.net'"/>
# Line 75  Line 76 
76    <title>Overview of <xsl:value-of select="$package"/> source package</title>    <title>Overview of <xsl:value-of select="$package"/> source package</title>
77    </head>    </head>
78    <body>    <body>
79    
80      <form onSubmit="window.location.pathname='/'+src.value; return false" style="float: right;">
81      Jump to package : <br/>
82      <input type="text" name="src" value=""/>
83      </form>
84    <h1>Overview of <xsl:value-of select="$package"/> source package</h1>    <h1>Overview of <xsl:value-of select="$package"/> source package</h1>
85    
86    <table class="containertable">    <table class="containertable">
87    <tr class="containerrow" valign="top">    <tr class="containerrow" valign="top">
88    <td class="containercell">    <td class="containercell">
# Line 369  Line 376 
376    
377    <!-- List of problems -->    <!-- List of problems -->
378    <xsl:variable name="problems">    <xsl:variable name="problems">
379      <xsl:if test="$exc/excuse[@name=$package]/@problematic">      <xsl:if test="$hasexcuse and document(concat('../base/', $dir, '/excuse.xml'))/excuse/@problematic">
380        <li>The package has not yet entered <a        <li>The package has not yet entered <a
381        href="http://ftp-master.debian.org/testing/update_excuses.html#{$package}">testing</a>        href="http://ftp-master.debian.org/testing/update_excuses.html#{$package}">testing</a>
382        even if the <xsl:value-of select="$exc/excuse[@name=$package]/@limit"/>-day        even if the <xsl:value-of select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/@limit"/>-day
383        delay is over.</li>        delay is over.</li>
384      </xsl:if>      </xsl:if>
385      <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">      <xsl:if test="not(starts-with(standards-version, $lastmajorsv))">
# Line 398  Line 405 
405    </tr>    </tr>
406    </xsl:if>    </xsl:if>
407    
408    <xsl:if test="$exc/excuse[@name=$package]">    <xsl:if test="$hasexcuse">
409    <tr class="titlerow">    <tr class="titlerow">
410    <td class="titlecell">    <td class="titlecell">
411    Testing Status    Testing Status
412    </td></tr>    </td></tr>
413    <tr class="normalrow">    <tr class="normalrow">
414    <td class="contentcell2" style="text-align: left">    <td class="contentcell2" style="text-align: left">
415    <xsl:for-each select="$exc/excuse[@name=$package]/item">    <xsl:for-each select="document(concat('../base/', $dir, '/excuse.xml'))/excuse/item">
416      <xsl:call-template name="outputitem"/>      <xsl:call-template name="outputitem"/>
417    </xsl:for-each>    </xsl:for-each>
418    </td>    </td>
# Line 414  Line 421 
421    
422    
423    <xsl:variable name="static">    <xsl:variable name="static">
424      <xsl:if test="$hasother">      <xsl:if test="$hasnews">
425        <xsl:for-each select="$other/static/item">        <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/static/item">
426          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem"/>
427        </xsl:for-each>        </xsl:for-each>
428      </xsl:if>      </xsl:if>
# Line 431  Line 438 
438    </xsl:if>    </xsl:if>
439    
440    <xsl:variable name="news">    <xsl:variable name="news">
441      <xsl:if test="$hasother">      <xsl:if test="$hasnews">
442        <xsl:for-each select="$other/news/item">        <xsl:for-each select="document(concat('../base/', $dir, '/news.xml'))/news/news/item">
443          <xsl:call-template name="outputitem"/>          <xsl:call-template name="outputitem"/>
444        </xsl:for-each>        </xsl:for-each>
445      </xsl:if>      </xsl:if>

Legend:
Removed from v.356  
changed lines
  Added in v.357

  ViewVC Help
Powered by ViewVC 1.1.5