incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r363342 - /incubator/public/trunk/site/xdocs/stylesheets/site.vsl
Date Mon, 02 Jan 2006 01:17:50 GMT
Author: geirm
Date: Sun Jan  1 17:17:48 2006
New Revision: 363342

URL: http://svn.apache.org/viewcvs?rev=363342&view=rev
Log:
fixed that bug where links in a table didn't work.... 

I wanna switch to DVSL :)


Modified:
    incubator/public/trunk/site/xdocs/stylesheets/site.vsl

Modified: incubator/public/trunk/site/xdocs/stylesheets/site.vsl
URL: http://svn.apache.org/viewcvs/incubator/public/trunk/site/xdocs/stylesheets/site.vsl?rev=363342&r1=363341&r2=363342&view=diff
==============================================================================
--- incubator/public/trunk/site/xdocs/stylesheets/site.vsl (original)
+++ incubator/public/trunk/site/xdocs/stylesheets/site.vsl Sun Jan  1 17:17:48 2006
@@ -35,6 +35,13 @@
 
 ## This is where the macro's live
 
+##
+## Very simple link macro...  this needs to be fleshed out
+##
+#macro( link $link)
+<a href="$link.getAttributeValue("href")">$link.getText()</a>
+#end
+
 #macro ( table $table)
 <table>
     #foreach ( $items in $table.getChildren() )
@@ -66,8 +73,19 @@
 #end
 <td bgcolor="$tabletdbg" colspan="$!colspan" rowspan="$!rowspan" valign="top" align="left">
     <font color="#000000" size="-1" face="arial,helvetica,sanserif">
-        #if ($value.getValue().length() != 0 || $value.hasChildren())
-        $value.getValue()
+      #if ($value.getText().length() != 0 || $value.getChildren().size())
+        
+        #if ($value.getChildren().size() != 0)
+           #foreach($thingy in $value.getChildren())
+              #if ($thingy.getName().equals("a"))
+                   #link($thingy)
+              #else
+                  $thingy.getText()
+              #end
+           #end
+        #else
+          $value.getText()
+        #end
         #else
         &nbsp;
         #end



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message