You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by cr...@apache.org on 2005/07/05 05:20:33 UTC

svn commit: r209193 - /forrest/trunk/main/webapp/skins/pelt/xslt/html/site2xhtml.xsl

Author: crossley
Date: Mon Jul  4 20:20:33 2005
New Revision: 209193

URL: http://svn.apache.org/viewcvs?rev=209193&view=rev
Log:
If the "motd-title" element from skinconf is empty,
then do not append to title.

Modified:
    forrest/trunk/main/webapp/skins/pelt/xslt/html/site2xhtml.xsl

Modified: forrest/trunk/main/webapp/skins/pelt/xslt/html/site2xhtml.xsl
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/pelt/xslt/html/site2xhtml.xsl?rev=209193&r1=209192&r2=209193&view=diff
==============================================================================
--- forrest/trunk/main/webapp/skins/pelt/xslt/html/site2xhtml.xsl (original)
+++ forrest/trunk/main/webapp/skins/pelt/xslt/html/site2xhtml.xsl Mon Jul  4 20:20:33 2005
@@ -63,9 +63,11 @@
                 <xsl:if test="$config/motd">
                   <xsl:for-each select="$config/motd/motd-option">
                     <xsl:if test="contains($path, @pattern)">
-                      <xsl:text> (</xsl:text>
-                      <xsl:value-of select="motd-title"/>
-                      <xsl:text>)</xsl:text>
+                      <xsl:if test="motd-tile != ''">
+                        <xsl:text> (</xsl:text>
+                        <xsl:value-of select="motd-title"/>
+                        <xsl:text>)</xsl:text>
+                      </xsl:if>
                     </xsl:if>
                   </xsl:for-each>
                 </xsl:if>