You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by gm...@apache.org on 2008/10/02 12:06:49 UTC

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

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>