You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by ch...@apache.org on 2003/01/02 20:40:43 UTC
cvs commit: jakarta-ant/proposal/ant-site/anakia/xdocs/stylesheets site.vsl templates.vm
chrisw 2003/01/02 11:40:43
Modified: proposal/ant-site/anakia/xdocs/stylesheets site.vsl
templates.vm
Log:
Migrated the table and source-section look from Forrest.
Revision Changes Path
1.3 +0 -2 jakarta-ant/proposal/ant-site/anakia/xdocs/stylesheets/site.vsl
Index: site.vsl
===================================================================
RCS file: /home/cvs/jakarta-ant/proposal/ant-site/anakia/xdocs/stylesheets/site.vsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- site.vsl 26 Dec 2002 08:56:07 -0000 1.2
+++ site.vsl 2 Jan 2003 19:40:43 -0000 1.3
@@ -58,8 +58,6 @@
#set ($blue3 = "#294563")
#set ($blue2 = "#4C6C8F")
#set ($blue1 = "#CFDCED")
- #set ($tablethbg = "#039acc")
- #set ($tabletdbg = "#a0ddf0")
#set ($sourceborder = "#023264")
#set ($pound = "#" )
## start the processing
1.5 +5 -27 jakarta-ant/proposal/ant-site/anakia/xdocs/stylesheets/templates.vm
Index: templates.vm
===================================================================
RCS file: /home/cvs/jakarta-ant/proposal/ant-site/anakia/xdocs/stylesheets/templates.vm,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- templates.vm 2 Jan 2003 08:37:56 -0000 1.4
+++ templates.vm 2 Jan 2003 19:40:43 -0000 1.5
@@ -51,7 +51,7 @@
## This is where the common macro's live
#macro ( table $table)
- <table>
+ <table class="ForrestTable" cellspacing="1" cellpadding="4">
#foreach ( $items in $table.getChildren() )
#if ($items.getName().equals("tr"))
#tr ($items)
@@ -79,15 +79,13 @@
#if ($value.getAttributeValue("rowspan"))
#set ($rowspan = $value.getAttributeValue("rowspan"))
#end
- <td bgcolor="$tabletdbg" colspan="$!colspan" rowspan="$!rowspan"
+ <td colspan="$!colspan" rowspan="$!rowspan"
valign="top" align="left">
- <font color="$darkfg" size="-1" face="arial,helvetica,sanserif">
#if ($value.getText().length() != 0 || $value.hasChildren())
$xmlout.outputString($value, true)
#else
#end
- </font>
</td>
#end
@@ -98,16 +96,14 @@
#if ($value.getAttributeValue("rowspan"))
#set ($rowspan = $value.getAttributeValue("rowspan"))
#end
- <td bgcolor="$tablethbg" colspan="$!colspan" rowspan="$!rowspan"
+ <th colspan="$!colspan" rowspan="$!rowspan"
valign="top" align="left">
- <font color="$darkfg" size="-1" face="arial,helvetica,sanserif">
#if ($value.getText().length() != 0 || $value.hasChildren())
$xmlout.outputString($value, true)
#else
#end
- </font>
- </td>
+ </th>
#end
#macro ( projectanchor $name $value )
@@ -140,25 +136,7 @@
#end
#macro ( source $value)
- <div align="left">
- <table cellspacing="4" cellpadding="0" border="0">
- <tr>
- <td bgcolor="$sourceborder" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
- <td bgcolor="$sourceborder" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
- <td bgcolor="$sourceborder" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
- </tr>
- <tr>
- <td bgcolor="$sourceborder" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
- <td bgcolor="$lightbg"><pre>$escape.getText($value.getText())</pre></td>
- <td bgcolor="$sourceborder" width="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
- </tr>
- <tr>
- <td bgcolor="$sourceborder" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
- <td bgcolor="$sourceborder" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
- <td bgcolor="$sourceborder" width="1" height="1"><img src="/images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
- </tr>
- </table>
- </div>
+<pre class="code">$escape.getText($value.getText())</pre>
#end
#macro ( makeProject )
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>