You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by nb...@apache.org on 2007/01/22 18:15:13 UTC

svn commit: r498709 - /velocity/tools/trunk/xdocs/site.dvsl

Author: nbubna
Date: Mon Jan 22 09:15:12 2007
New Revision: 498709

URL: http://svn.apache.org/viewvc?view=rev&rev=498709
Log:
don't require author email addresses

Modified:
    velocity/tools/trunk/xdocs/site.dvsl

Modified: velocity/tools/trunk/xdocs/site.dvsl
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/xdocs/site.dvsl?view=diff&rev=498709&r1=498708&r2=498709
==============================================================================
--- velocity/tools/trunk/xdocs/site.dvsl (original)
+++ velocity/tools/trunk/xdocs/site.dvsl Mon Jan 22 09:15:12 2007
@@ -80,7 +80,9 @@
 
        #foreach( $n in $node.properties.selectNodes("author") )
         <meta name="author" value="$n"/>
-        <meta name="email" value="$n.attribute("email")" />
+        #if( $n.attribute('email') )
+            <meta name="email" value="$n.attribute('email')" />
+        #end
        #end
         
     
@@ -377,7 +379,10 @@
   <tr><td>&nbsp;</td><td><pre>$node.copy($node.config-example.children())</pre></td></tr>
 
   <tr><td colspan="2"><strong>Author(s)</strong></td></tr>
-  <tr><td>&nbsp;</td><td>#foreach($n in $node.selectNodes("author"))<a href="mailto:$n.attribute("email")">$n</a><br>#end</td></tr>
+  <tr>
+    <td>&nbsp;</td>
+    <td>#foreach($n in $node.selectNodes("author"))#if( $n.attribute('email') )<a href="mailto:$n.attribute('email')">$n</a>#else$n#end<br>#end</td>
+  </tr>
 </table>
 #end