forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gmcdon...@apache.org
Subject svn commit: r701062 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/reference-links.ft
Date Thu, 02 Oct 2008 10:06:49 GMT
Author: gmcdonald
Date: Thu Oct  2 03:06:48 2008
New Revision: 701062

URL: http://svn.apache.org/viewvc?rev=701062&view=rev
Log:
Dont display the References Heading if there are none on the page.

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/reference-links.ft

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/reference-links.ft
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/reference-links.ft?rev=701062&r1=701061&r2=701062&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/reference-links.ft
(original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.themes.core/themes/common/html/reference-links.ft
Thu Oct  2 03:06:48 2008
@@ -32,6 +32,7 @@
       <xsl:template match="/">
         <forrest:content>
           <forrest:part>
+          <xsl:if test= "count(//link) &gt; 0">
           <h2>References</h2>
             <ul>
             <xsl:comment>+ |start reference-links +</xsl:comment>
@@ -49,6 +50,7 @@
                 </xsl:for-each>
               </ul>
             <xsl:comment>+ |end reference-links +</xsl:comment>
+            </xsl:if>
           </forrest:part>
         </forrest:content>
       </xsl:template>



Mime
View raw message