/[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 2057 by zack, Sat Nov 29 15:01:48 2008 UTC revision 2058 by zack, Sat Nov 29 15:20:51 2008 UTC
# Line 601  other-to-%xx, especially % to %25... For Line 601  other-to-%xx, especially % to %25... For
601    </ul></td></tr>    </ul></td></tr>
602  </xsl:template>  </xsl:template>
603    
604    <xsl:template name="output-version">
605      <xsl:param name="suite" select="''" />
606      <xsl:param name="link" select="'yes'" />
607      <xsl:variable name="version">
608        <span class="srcversion" title="{$suite}">
609          <xsl:value-of select="document(concat('../base/', $dir, '/', $suite,
610                                '.xml'))/source/version"/>
611        </span>
612      </xsl:variable>
613      <xsl:choose>
614        <xsl:when test="$link='yes'">
615          <a href="http://packages.debian.org/source/{$suite}/{$package}">
616            <xsl:copy-of select="$version" />
617          </a>
618        </xsl:when>
619        <xsl:otherwise>
620          <xsl:copy-of select="$version" />
621        </xsl:otherwise>
622      </xsl:choose>
623    </xsl:template>
624    
625  <xsl:template name="available-versions">  <xsl:template name="available-versions">
626    <tr class="titlerow">    <tr class="titlerow">
627      <td class="titlecell" colspan="2">      <td class="titlecell" colspan="2">
# Line 617  other-to-%xx, especially % to %25... For Line 638  other-to-%xx, especially % to %25... For
638      <tr class="normalrow">      <tr class="normalrow">
639        <td class="labelcell"><a href="http://www.debian.org/releases/sarge/">Oldstable</a></td>        <td class="labelcell"><a href="http://www.debian.org/releases/sarge/">Oldstable</a></td>
640        <td class="contentcell">        <td class="contentcell">
641          <a href="http://packages.debian.org/source/oldstable/{$package}"><xsl:value-of          <xsl:call-template name="output-version">
642              select="document(concat('../base/', $dir, '/oldstable.xml'))/source/version"/></a>            <xsl:with-param name="suite">oldstable</xsl:with-param>
643            </xsl:call-template>
644        </td>        </td>
645      </tr>      </tr>
646    </xsl:if>    </xsl:if>
# Line 626  other-to-%xx, especially % to %25... For Line 648  other-to-%xx, especially % to %25... For
648      <tr class="normalrow">      <tr class="normalrow">
649        <td class="labelcell"><small>Oldstable Security Updates</small></td>        <td class="labelcell"><small>Oldstable Security Updates</small></td>
650        <td class="contentcell">        <td class="contentcell">
651          <xsl:value-of select="document(concat('../base/', $dir, '/security-oldstable.xml'))/source/version"/>          <xsl:call-template name="output-version">
652              <xsl:with-param name="suite">security-oldstable</xsl:with-param>
653              <xsl:with-param name="link">no</xsl:with-param>
654            </xsl:call-template>
655        </td>        </td>
656      </tr>      </tr>
657    </xsl:if>    </xsl:if>
# Line 636  other-to-%xx, especially % to %25... For Line 661  other-to-%xx, especially % to %25... For
661      <tr class="normalrow">      <tr class="normalrow">
662        <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>        <td class="labelcell"><a href="http://www.debian.org/releases/stable/">Stable</a></td>
663        <td class="contentcell">        <td class="contentcell">
664          <a href="http://packages.debian.org/source/stable/{$package}"><xsl:value-of          <xsl:call-template name="output-version">
665              select="document(concat('../base/', $dir, '/stable.xml'))/source/version"/></a>            <xsl:with-param name="suite">stable</xsl:with-param>
666            </xsl:call-template>
667        </td>        </td>
668      </tr>      </tr>
669    </xsl:if>    </xsl:if>
# Line 645  other-to-%xx, especially % to %25... For Line 671  other-to-%xx, especially % to %25... For
671      <tr class="normalrow">      <tr class="normalrow">
672        <td class="labelcell"><small>Stable Security Updates</small></td>        <td class="labelcell"><small>Stable Security Updates</small></td>
673        <td class="contentcell">        <td class="contentcell">
674          <xsl:value-of select="document(concat('../base/', $dir, '/security-stable.xml'))/source/version"/>          <xsl:call-template name="output-version">
675              <xsl:with-param name="suite">security-stable</xsl:with-param>
676              <xsl:with-param name="link">no</xsl:with-param>
677            </xsl:call-template>
678        </td>        </td>
679      </tr>      </tr>
680    </xsl:if>    </xsl:if>
# Line 653  other-to-%xx, especially % to %25... For Line 682  other-to-%xx, especially % to %25... For
682      <tr class="normalrow">      <tr class="normalrow">
683        <td class="labelcell"><small>Stable Proposed Updates</small></td>        <td class="labelcell"><small>Stable Proposed Updates</small></td>
684        <td class="contentcell">        <td class="contentcell">
685          <xsl:value-of select="document(concat('../base/', $dir,          <xsl:call-template name="output-version">
686              '/stable-proposed-updates.xml'))/source/version" />            <xsl:with-param name="suite">stable-proposed-updates</xsl:with-param>
687              <xsl:with-param name="link">no</xsl:with-param>
688            </xsl:call-template>
689        </td>        </td>
690      </tr>      </tr>
691    </xsl:if>    </xsl:if>
# Line 664  other-to-%xx, especially % to %25... For Line 695  other-to-%xx, especially % to %25... For
695      <tr class="normalrow">      <tr class="normalrow">
696        <td class="labelcell"><a href="http://www.debian.org/releases/testing/">Testing</a></td>        <td class="labelcell"><a href="http://www.debian.org/releases/testing/">Testing</a></td>
697        <td class="contentcell">        <td class="contentcell">
698          <a href="http://packages.debian.org/source/testing/{$package}"><xsl:value-of          <xsl:call-template name="output-version">
699              select="document(concat('../base/', $dir, '/testing.xml'))/source/version"/></a>            <xsl:with-param name="suite">testing</xsl:with-param>
700            </xsl:call-template>
701        </td>        </td>
702      </tr>      </tr>
703    </xsl:if>    </xsl:if>
# Line 673  other-to-%xx, especially % to %25... For Line 705  other-to-%xx, especially % to %25... For
705      <tr class="normalrow">      <tr class="normalrow">
706        <td class="labelcell"><small>Testing Security Updates</small></td>        <td class="labelcell"><small>Testing Security Updates</small></td>
707        <td class="contentcell">        <td class="contentcell">
708          <xsl:value-of select="document(concat('../base/', $dir, '/security-testing.xml'))/source/version"/>          <xsl:call-template name="output-version">
709              <xsl:with-param name="suite">security-testing</xsl:with-param>
710              <xsl:with-param name="link">no</xsl:with-param>
711            </xsl:call-template>
712        </td>        </td>
713      </tr>      </tr>
714    </xsl:if>    </xsl:if>
# Line 681  other-to-%xx, especially % to %25... For Line 716  other-to-%xx, especially % to %25... For
716      <tr class="normalrow">      <tr class="normalrow">
717        <td class="labelcell"><small>Testing Proposed Updates</small></td>        <td class="labelcell"><small>Testing Proposed Updates</small></td>
718        <td class="contentcell">        <td class="contentcell">
719          <xsl:value-of select="document(concat('../base/', $dir,          <xsl:call-template name="output-version">
720              '/testing-proposed-updates.xml'))/source/version" />            <xsl:with-param name="suite">testing-proposed-updates</xsl:with-param>
721              <xsl:with-param name="link">no</xsl:with-param>
722            </xsl:call-template>
723        </td>        </td>
724      </tr>      </tr>
725    </xsl:if>    </xsl:if>
# Line 692  other-to-%xx, especially % to %25... For Line 729  other-to-%xx, especially % to %25... For
729      <tr class="normalrow">      <tr class="normalrow">
730        <td class="labelcell">Unstable</td>        <td class="labelcell">Unstable</td>
731        <td class="contentcell">        <td class="contentcell">
732          <a href="http://packages.debian.org/source/unstable/{$package}"><xsl:value-of          <xsl:call-template name="output-version">
733              select="document(concat('../base/', $dir, '/unstable.xml'))/source/version"/></a>            <xsl:with-param name="suite">unstable</xsl:with-param>
734            </xsl:call-template>
735        </td>        </td>
736      </tr>      </tr>
737    </xsl:if>    </xsl:if>
# Line 703  other-to-%xx, especially % to %25... For Line 741  other-to-%xx, especially % to %25... For
741      <tr class="normalrow">      <tr class="normalrow">
742        <td class="labelcell">Experimental</td>        <td class="labelcell">Experimental</td>
743        <td class="contentcell">        <td class="contentcell">
744          <a href="http://packages.debian.org/source/experimental/{$package}"><xsl:value-of          <xsl:call-template name="output-version">
745              select="document(concat('../base/', $dir, '/experimental.xml'))/source/version"/></a>            <xsl:with-param name="suite">experimental</xsl:with-param>
746            </xsl:call-template>
747        </td>        </td>
748      </tr>      </tr>
749    </xsl:if>    </xsl:if>
# Line 714  other-to-%xx, especially % to %25... For Line 753  other-to-%xx, especially % to %25... For
753      <tr class="normalrow">      <tr class="normalrow">
754        <td class="labelcell">Secure testing</td>        <td class="labelcell">Secure testing</td>
755        <td class="contentcell">        <td class="contentcell">
756          <xsl:value-of select="document(concat('../base/', $dir, '/secure-testing.xml'))/source/version"/>          <xsl:call-template name="output-version">
757              <xsl:with-param name="suite">secure-testing</xsl:with-param>
758              <xsl:with-param name="link">no</xsl:with-param>
759            </xsl:call-template>
760        </td>        </td>
761      </tr>      </tr>
762    </xsl:if>    </xsl:if>
# Line 724  other-to-%xx, especially % to %25... For Line 766  other-to-%xx, especially % to %25... For
766      <tr class="normalrow">      <tr class="normalrow">
767        <td class="labelcell">Volatile</td>        <td class="labelcell">Volatile</td>
768        <td class="contentcell">        <td class="contentcell">
769          <xsl:value-of select="document(concat('../base/', $dir, '/volatile.xml'))/source/version"/>          <xsl:call-template name="output-version">
770              <xsl:with-param name="suite">volatile</xsl:with-param>
771              <xsl:with-param name="link">no</xsl:with-param>
772            </xsl:call-template>
773        </td>        </td>
774      </tr>      </tr>
775    </xsl:if>    </xsl:if>

Legend:
Removed from v.2057  
changed lines
  Added in v.2058

  ViewVC Help
Powered by ViewVC 1.1.5