jakarta-site-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r154582 - in jakarta/site: docs/site/downloads/index.html xdocs/downloads/download-page.xsl xdocs/downloads/download-pages.xsl
Date Mon, 21 Feb 2005 00:30:34 GMT
Author: bayard
Date: Sun Feb 20 16:30:34 2005
New Revision: 154582

URL: http://svn.apache.org/viewcvs?view=rev&rev=154582
Log:
fix to download index so that pages without downloads (and thus without .cgi files) are linked
to the .html files

Modified:
    jakarta/site/docs/site/downloads/index.html
    jakarta/site/xdocs/downloads/download-page.xsl
    jakarta/site/xdocs/downloads/download-pages.xsl

Modified: jakarta/site/docs/site/downloads/index.html
URL: http://svn.apache.org/viewcvs/jakarta/site/docs/site/downloads/index.html?view=diff&r1=154581&r2=154582
==============================================================================
--- jakarta/site/docs/site/downloads/index.html (original)
+++ jakarta/site/docs/site/downloads/index.html Sun Feb 20 16:30:34 2005
@@ -179,14 +179,14 @@
 <li class="project">
 <a href="downloads_bcel.cgi">BCEL</a>
 </li>
-<li class="project">
-<a href="downloads_bsf.cgi">BSF</a>
+<li class="unmirrored_project">
+<a href="downloads_bsf.html">BSF</a>
 </li>
 <li class="project">
 <a href="downloads_cactus.cgi">Cactus</a>
 </li>
-<li class="project">
-<a href="downloads_commons.cgi">Commons</a>
+<li class="tiered_project">
+<a href="downloads_commons.html">Commons</a>
 </li>
 <li class="project">
 <a href="downloads_ecs.cgi">ECS</a>
@@ -218,14 +218,14 @@
 <li class="project">
 <a href="downloads_tapestry.cgi">Tapestry</a>
 </li>
-<li class="project">
-<a href="downloads_tomcat.cgi">Tomcat</a>
+<li class="tiered_project">
+<a href="downloads_tomcat.html">Tomcat</a>
 </li>
 <li class="project">
 <a href="downloads_turbine.cgi">Turbine</a>
 </li>
-<li class="project">
-<a href="downloads_velocity.cgi">Velocity</a>
+<li class="tiered_project">
+<a href="downloads_velocity.html">Velocity</a>
 </li>
 </ul>
 </div>
@@ -238,8 +238,7 @@
 </div>
 <div class="subsection-body">
 <p>
-<a href="http://brutus.apache.org/gump/public-jars/">Latest development JARs for all
products</a> (monitored by <a href="http://gump.apache.org/">Gump</a>)
-</p>
+<a href="http://brutus.apache.org/gump/public-jars/">Latest development JARs for all
products</a> (monitored by <a href="http://gump.apache.org/">Gump</a>)</p>
 </div>
 </div>
 </div>

Modified: jakarta/site/xdocs/downloads/download-page.xsl
URL: http://svn.apache.org/viewcvs/jakarta/site/xdocs/downloads/download-page.xsl?view=diff&r1=154581&r2=154582
==============================================================================
--- jakarta/site/xdocs/downloads/download-page.xsl (original)
+++ jakarta/site/xdocs/downloads/download-page.xsl Sun Feb 20 16:30:34 2005
@@ -35,11 +35,26 @@
   </xsl:template>
 
 
+  <!-- largely matches the subproject template in download-pages.xsl -->
   <xsl:template match="project">
     <xsl:variable name="id"><xsl:value-of select="@id"/></xsl:variable>
-    <li class="project">
-      <a href="downloads_{$id}.cgi"><xsl:value-of select="@name"/></a>
-    </li>
+    <xsl:if test="downloads">
+      <xsl:if test="downloads/@mirrored != 'false'">
+        <li class="project">
+          <a href="downloads_{$id}.cgi"><xsl:value-of select="@name"/></a>
+        </li>
+      </xsl:if>
+      <xsl:if test="downloads/@mirrored = 'false'">
+        <li class="unmirrored_project">
+          <a href="downloads_{$id}.html"><xsl:value-of select="@name"/></a>
+        </li>
+      </xsl:if>
+    </xsl:if>
+    <xsl:if test="not(downloads)">
+      <li class="tiered_project">
+        <a href="downloads_{$id}.html"><xsl:value-of select="@name"/></a>
+      </li>
+    </xsl:if>
   </xsl:template>
 
 </xsl:stylesheet>

Modified: jakarta/site/xdocs/downloads/download-pages.xsl
URL: http://svn.apache.org/viewcvs/jakarta/site/xdocs/downloads/download-pages.xsl?view=diff&r1=154581&r2=154582
==============================================================================
--- jakarta/site/xdocs/downloads/download-pages.xsl (original)
+++ jakarta/site/xdocs/downloads/download-pages.xsl Sun Feb 20 16:30:34 2005
@@ -80,11 +80,27 @@
   </xsl:template>
 
   <!-- used to match nested project tags -->
+  <!-- largely matches the project template in download-page.xsl -->
   <xsl:template name="subproject">
     <xsl:variable name="id"><xsl:value-of select="@id"/></xsl:variable>
-    <li class="project">
-        <a href="downloads_{$id}.cgi"><xsl:value-of select="@name"/></a>
-    </li>
+    <xsl:if test="downloads">
+      <xsl:if test="downloads/@mirrored != 'false'">
+        <li class="project">
+          <a href="downloads_{$id}.cgi"><xsl:value-of select="@name"/></a>
+        </li>
+      </xsl:if>
+      <xsl:if test="downloads/@mirrored = 'false'">
+        <li class="unmirrored_project">
+          <a href="downloads_{$id}.html"><xsl:value-of select="@name"/></a>
+        </li>
+      </xsl:if>
+    </xsl:if>
+    <xsl:if test="not(downloads)">
+      <li class="tiered_project">
+        <a href="downloads_{$id}.html"><xsl:value-of select="@name"/></a>
+      </li>
+    </xsl:if>
+
     <redirect:write file="downloads_{$id}.xml">
         <xsl:apply-templates select="."/>
     </redirect:write>



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


Mime
View raw message