incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1180760 - /incubator/public/trunk/site-author/stylesheets/project-index.xsl
Date Mon, 10 Oct 2011 02:08:59 GMT
Author: sebb
Date: Mon Oct 10 02:08:59 2011
New Revision: 1180760

URL: http://svn.apache.org/viewvc?rev=1180760&view=rev
Log:
Add enddate processing

Modified:
    incubator/public/trunk/site-author/stylesheets/project-index.xsl

Modified: incubator/public/trunk/site-author/stylesheets/project-index.xsl
URL: http://svn.apache.org/viewvc/incubator/public/trunk/site-author/stylesheets/project-index.xsl?rev=1180760&r1=1180759&r2=1180760&view=diff
==============================================================================
--- incubator/public/trunk/site-author/stylesheets/project-index.xsl (original)
+++ incubator/public/trunk/site-author/stylesheets/project-index.xsl Mon Oct 10 02:08:59 2011
@@ -50,18 +50,22 @@
     <xsl:call-template name="section">
         <xsl:with-param name="status" select="'current'"/>
         <xsl:with-param name="title" select="'Currently in incubation'"/>
+        <xsl:with-param name="date" select="'Start Date'"/>
     </xsl:call-template>
     <xsl:call-template name="section">
         <xsl:with-param name="status" select="'graduated'"/>
         <xsl:with-param name="title" select="'Graduated from incubation'"/>
+        <xsl:with-param name="date" select="'Started/Ended'"/>
     </xsl:call-template>
     <xsl:call-template name="section">
         <xsl:with-param name="status" select="'dormant'"/>
         <xsl:with-param name="title" select="'Dormant Projects'"/>
+        <xsl:with-param name="date" select="'Started/Ended'"/>
     </xsl:call-template>
     <xsl:call-template name="section">
         <xsl:with-param name="status" select="'retired'"/>
         <xsl:with-param name="title" select="'Retired from incubation'"/>
+        <xsl:with-param name="date" select="'Started/Ended'"/>
     </xsl:call-template>
   </body>
 </document>
@@ -70,6 +74,7 @@
 <xsl:template name="section">
     <xsl:param name='status'/>
     <xsl:param name='title'/>
+    <xsl:param name='date'/>
         <xsl:element name="section">
           <xsl:attribute name="id"><xsl:value-of select='$status'/></xsl:attribute>
         <title><xsl:value-of select='$title'/></title>
@@ -80,7 +85,7 @@
           <th>Description</th>
           <th>Apache Sponsor</th>
           <th>Mentors</th>
-          <th>Start Date</th>
+          <th><xsl:value-of select='$date'/></th>
         </tr>
         <xsl:apply-templates select="podling[status = $status]">
             <xsl:sort select='@name'/>
@@ -119,7 +124,7 @@
           </td>
 <xsl:text>
 </xsl:text>
-          <td><xsl:value-of select="startdate"/></td>
+          <td><xsl:value-of select="startdate"/><xsl:if test="enddate">
/ <xsl:value-of select="enddate"/></xsl:if></td>
 <xsl:text>
 </xsl:text>
         </tr>



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


Mime
View raw message