Browse Source

Migrated the table and source-section look from Forrest.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273739 13f79535-47bb-0310-9956-ffa450edef68
master
Christoph Wilhelms 22 years ago
parent
commit
c994965375
2 changed files with 5 additions and 29 deletions
  1. +0
    -2
      proposal/ant-site/anakia/xdocs/stylesheets/site.vsl
  2. +5
    -27
      proposal/ant-site/anakia/xdocs/stylesheets/templates.vm

+ 0
- 2
proposal/ant-site/anakia/xdocs/stylesheets/site.vsl View File

@@ -58,8 +58,6 @@
#set ($blue3 = "#294563") #set ($blue3 = "#294563")
#set ($blue2 = "#4C6C8F") #set ($blue2 = "#4C6C8F")
#set ($blue1 = "#CFDCED") #set ($blue1 = "#CFDCED")
#set ($tablethbg = "#039acc")
#set ($tabletdbg = "#a0ddf0")
#set ($sourceborder = "#023264") #set ($sourceborder = "#023264")
#set ($pound = "#" ) #set ($pound = "#" )
## start the processing ## start the processing


+ 5
- 27
proposal/ant-site/anakia/xdocs/stylesheets/templates.vm View File

@@ -51,7 +51,7 @@
## This is where the common macro's live ## This is where the common macro's live


#macro ( table $table) #macro ( table $table)
<table>
<table class="ForrestTable" cellspacing="1" cellpadding="4">
#foreach ( $items in $table.getChildren() ) #foreach ( $items in $table.getChildren() )
#if ($items.getName().equals("tr")) #if ($items.getName().equals("tr"))
#tr ($items) #tr ($items)
@@ -79,15 +79,13 @@
#if ($value.getAttributeValue("rowspan")) #if ($value.getAttributeValue("rowspan"))
#set ($rowspan = $value.getAttributeValue("rowspan")) #set ($rowspan = $value.getAttributeValue("rowspan"))
#end #end
<td bgcolor="$tabletdbg" colspan="$!colspan" rowspan="$!rowspan"
<td colspan="$!colspan" rowspan="$!rowspan"
valign="top" align="left"> valign="top" align="left">
<font color="$darkfg" size="-1" face="arial,helvetica,sanserif">
#if ($value.getText().length() != 0 || $value.hasChildren()) #if ($value.getText().length() != 0 || $value.hasChildren())
$xmlout.outputString($value, true) $xmlout.outputString($value, true)
#else #else
&nbsp; &nbsp;
#end #end
</font>
</td> </td>
#end #end


@@ -98,16 +96,14 @@
#if ($value.getAttributeValue("rowspan")) #if ($value.getAttributeValue("rowspan"))
#set ($rowspan = $value.getAttributeValue("rowspan")) #set ($rowspan = $value.getAttributeValue("rowspan"))
#end #end
<td bgcolor="$tablethbg" colspan="$!colspan" rowspan="$!rowspan"
<th colspan="$!colspan" rowspan="$!rowspan"
valign="top" align="left"> valign="top" align="left">
<font color="$darkfg" size="-1" face="arial,helvetica,sanserif">
#if ($value.getText().length() != 0 || $value.hasChildren()) #if ($value.getText().length() != 0 || $value.hasChildren())
$xmlout.outputString($value, true) $xmlout.outputString($value, true)
#else #else
&nbsp; &nbsp;
#end #end
</font>
</td>
</th>
#end #end


#macro ( projectanchor $name $value ) #macro ( projectanchor $name $value )
@@ -140,25 +136,7 @@
#end #end


#macro ( source $value) #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 #end


#macro ( makeProject ) #macro ( makeProject )


Loading…
Cancel
Save