You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-cvs@jakarta.apache.org by ba...@apache.org on 2005/02/07 02:55:15 UTC

svn commit: r151658 - jakarta/site/xdocs/downloads/download-pages.xsl

Author: bayard
Date: Sun Feb  6 17:55:14 2005
New Revision: 151658

URL: http://svn.apache.org/viewcvs?view=rev&rev=151658
Log:
added various todos. Only shows the mirror info if the page has downloads that are mirrored

Modified:
    jakarta/site/xdocs/downloads/download-pages.xsl

Modified: jakarta/site/xdocs/downloads/download-pages.xsl
URL: http://svn.apache.org/viewcvs/jakarta/site/xdocs/downloads/download-pages.xsl?view=diff&r1=151657&r2=151658
==============================================================================
--- jakarta/site/xdocs/downloads/download-pages.xsl (original)
+++ jakarta/site/xdocs/downloads/download-pages.xsl Sun Feb  6 17:55:14 2005
@@ -16,41 +16,50 @@
         <xsl:variable name="name"><xsl:value-of select="@name"/></xsl:variable>
         <section name="{$name} Downloads">
 
-        <p>We recommend you use a mirror to download our release
-        builds, but you <strong>must</strong> verify the integrity of
-        the downloaded files using signatures downloaded from our main 
-        distribution directories. Recent releases (48 hours) may not yet be available from the mirrors. </p>
-
-        <p>You are currently using <b>[preferred]</b>.  If you
-        encounter a problem with this mirror, please select another
-        mirror.  If all mirrors are failing, there are <i>backup</i>
-        mirrors (at the end of the mirrors list) that should be
-        available.<br/>[if-any logo]<a href="[link]"><img align="right" src="[logo]" border="0" /></a>[end]</p>
+        <xsl:if test="downloads/@mirrored != 'false'">
+            <p>We recommend you use a mirror to download our release
+            builds, but you <strong>must</strong> verify the integrity of
+            the downloaded files using signatures downloaded from our main 
+            distribution directories. Recent releases (48 hours) may not yet be available from the mirrors. </p>
 
+            <p>You are currently using <b>[preferred]</b>.  If you
+            encounter a problem with this mirror, please select another
+            mirror.  If all mirrors are failing, there are <i>backup</i>
+            mirrors (at the end of the mirrors list) that should be
+            available.<br/>[if-any logo]<a href="[link]"><img align="right" src="[logo]" border="0" /></a>[end]</p>
+
+            <p>
+            <form action="[location]" method="get" id="SelectMirror">
+              Other mirrors: <select name="Preferred">
+              [if-any http]
+                [for http]<option value="[http]">[http]</option>[end]
+              [end]
+              [if-any ftp]
+                [for ftp]<option value="[ftp]">[ftp]</option>[end]
+              [end]
+              [if-any backup]
+                [for backup]<option value="[backup]">[backup] (backup)</option>[end]
+              [end]
+              </select>
+              <input type="submit" value="Change" />
+            </form>
+            </p>
+        </xsl:if>
         <p>
-        <form action="[location]" method="get" id="SelectMirror">
-          Other mirrors: <select name="Preferred">
-          [if-any http]
-            [for http]<option value="[http]">[http]</option>[end]
-          [end]
-          [if-any ftp]
-            [for ftp]<option value="[ftp]">[ftp]</option>[end]
-          [end]
-          [if-any backup]
-            [for backup]<option value="[backup]">[backup] (backup)</option>[end]
-          [end]
-          </select>
-          <input type="submit" value="Change" />
-        </form>
+
+        <!-- TODO: Only show this if there are PGP links -->
+        The <code>KEYS</code> link next to the product links to the code signing keys used to sign the product.
+        The <code>PGP</code> link downloads the OpenPGP compatible signature from our main site. 
+
+        <!-- TODO: Only show this if there are MD5 links -->
+        The <code>MD5</code> link downloads the checksum from the main site.
         </p>
-        <p>The <code>KEYS</code> link next to the product
-        links to the code signing keys used to sign the product.
-        The <code>PGP</code> link downloads the OpenPGP compatible signature
-        from our main site and the <code>MD5</code> link downloads the checksum, also
-        from the main site.</p>
+
+        <!-- TODO: Only show this if it has a name/href -->
         <p>For more information concerning <xsl:value-of select="@name"/>, see the <a href="{$href}" class="name"><xsl:value-of select="@name"/></a> site. </p>
+
           <xsl:for-each select="project">
-          <xsl:call-template name="subproject"/>
+            <xsl:call-template name="subproject"/>
           </xsl:for-each>
           <xsl:apply-templates select="downloads"/>
         </section>



---------------------------------------------------------------------
To unsubscribe, e-mail: site-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: site-cvs-help@jakarta.apache.org