adammurdoch 2002/07/04 06:20:15
Modified: site/src/xdocs/stylesheets docs.vsl
Log:
Only add author info only if there actually is an author (the generated type
docs don't have any, for example).
Revision Changes Path
1.7 +8 -6 jakarta-ant-myrmidon/site/src/xdocs/stylesheets/docs.vsl
Index: docs.vsl
===================================================================
RCS file: /home/cvs/jakarta-ant-myrmidon/site/src/xdocs/stylesheets/docs.vsl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- docs.vsl 13 Jun 2002 08:57:11 -0000 1.6
+++ docs.vsl 4 Jul 2002 13:20:15 -0000 1.7
@@ -269,12 +269,14 @@
#end
#macro (getAuthorList)
- <div align="right" id="authors">by
- #set ($authors = $root.getChild("properties").getChildren("author"))
- #foreach ( $au in $authors )
- #if( $velocityCount != 1 ),#end <a
href="$au.getAttributeValue("email")">$au.getText()</a>
- #end
- </div>
+ #set ($authors = $root.getChild("properties").getChildren("author"))
+ #if ( $authors.size() > 0 )
+ <div align="right" id="authors">by
+ #foreach ( $au in $authors )
+ #if( $velocityCount != 1 ),#end <a
href="$au.getAttributeValue("email")">$au.getText()</a>
+ #end
+ </div>
+ #end
#end
#macro (copycontent $element)
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>