raphael 01/05/29 15:53:34
Modified: webapp/WEB-INF/templates/vm/controls jetspeed.vm
Added: webapp/WEB-INF/templates/vm/controls clear.vm
jetspeed-box.vm jetspeed-menu.vm jetspeed-tab.vm
Log:
extend VelocityPortletControl to replace all existing HTML ECS controls
(including PanedPortletControl)
Revision Changes Path
1.3 +2 -3
jakarta-jetspeed/webapp/WEB-INF/templates/vm/controls/jetspeed.vm
Index: jetspeed.vm
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed/webapp/WEB-INF/templates/vm/controls/jetspeed.vm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- jetspeed.vm 2001/05/29 10:01:06 1.2
+++ jetspeed.vm 2001/05/29 22:53:30 1.3
@@ -1,3 +1,4 @@
+#if( ! $portlet.isClosed($data) )
<table border="0" bgcolor="$!{skin.BackgroundColor}" cellpadding="0"
cellspacing="0" width="100%">
<tr bgcolor="$!{skin.TitleBackgroundColor}">
<td align="left" bgcolor="$!{skin.TitleBackgroundColor}" nowrap="true"
valign="middle" width="100%">
@@ -23,6 +24,4 @@
</tr>
#end
</table>
-
-
-
+#end
\ No newline at end of file
1.1 jakarta-jetspeed/webapp/WEB-INF/templates/vm/controls/clear.vm
Index: clear.vm
===================================================================
$portlet.getContent($data)
1.1
jakarta-jetspeed/webapp/WEB-INF/templates/vm/controls/jetspeed-box.vm
Index: jetspeed-box.vm
===================================================================
#if ( $conf.getInitParameter("thickness") )
#set ( $thickness = $conf.getInitParameter("thickness") )
#else
#set ( $thickness = 1 )
#end
<table border="0" bgcolor="$!{skin.HighlightBackgroundColor}"
cellpadding="$thickness" cellspacing="0" width="100%">
<tr>
<td bgcolor="$!{skin.BackgroundColor}" align="center" valign="top" width="100%" >
<table bgcolor="$!{skin.BackgroundColor}" border="0" cellpadding="2"
cellspacing="0" width="100%" align="center">
<tr>
<td valign="top" width="100%">
$portlet.getContent($data)
</td>
</tr>
</table>
</td>
</tr>
</table>
1.1
jakarta-jetspeed/webapp/WEB-INF/templates/vm/controls/jetspeed-menu.vm
Index: jetspeed-menu.vm
===================================================================
#if ( ! $tabs )
#parse ("jetspeed.vm")
#else
#set ($width = $conf.getInitParameter("tab-width") )
#if (!$width)
#set ($width = "20%" )
#end
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td valign="top" width="$width">
<table cellspacing="0" border="0" cellpadding="0">
#foreach ( $tab in $tabs )
#if ($tab.isSelected() )
#set ($bgcolor = $!{skin.HighlightBackgroundColor} )
#set ($color = $!{skin.HighlightTextColor} )
#else
#set ($bgcolor = $!{skin.TitleBackgroundColor} )
#set ($color = $!{skin.TitleTextColor} )
#end
<tr>
<td valign="middle" bgcolor="$bgcolor">
<b><a #if ($tab.Link && ($tab.isSelected() == false)) href="$tab.Link"
#end><font color="$color">$tab.Title</font></a> </b>
</td>
</tr>
#end
<tr>
<td valign="bottom" align="right">
#foreach ( $action in $actions )
<a href="${action.Link}"><img src="images/${action.Name}.gif"
border="0"></a>
#end
</td>
</tr>
</table>
</td>
<td valign="top" bgcolor="$!{skin.BackgroundColor}">
$portlet.getContent($data)
</td>
</tr>
</table>
#end
1.1
jakarta-jetspeed/webapp/WEB-INF/templates/vm/controls/jetspeed-tab.vm
Index: jetspeed-tab.vm
===================================================================
#if ( ! $tabs )
#parse ("jetspeed.vm")
#else
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td valign="top">
<table align="left" cellspacing="0" border="0" cellpadding="0">
<tr width="100%">
#foreach ( $tab in $tabs )
#if ($tab.isSelected() )
#set ($bgcolor = $!{skin.HighlightBackgroundColor} )
#set ($color = $!{skin.HighlightTextColor} )
#else
#set ($bgcolor = $!{skin.TitleBackgroundColor} )
#set ($color = $!{skin.TitleTextColor} )
#end
<td valign="middle" bgcolor="$bgcolor">
<b><a #if ($tab.Link && ($tab.isSelected() == false)) href="$tab.Link"
#end><font color="$color">$tab.Title</font></a> </b>
#foreach ($action in $tab.Actions)
<a href="${action.Link}"><img src="images/${action.Name}.gif" border="0"
/></a>
#end
</td>
<td width="2"> </td>
#end
</tr>
</table>
<table align="right" cellspacing="0" border="0" cellpadding="0">
<tr width="100%">
<td align="right" nowrap="true" valign="middle">
#foreach ( $action in $actions )
<a href="${action.Link}"><img src="images/${action.Name}.gif"
border="0"></a>
#end
</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="0" width="100%" border="0" cellpadding="0">
<tr><td height="2" bgcolor="$!{skin.HighlightBackgroundColor}"><img height="2"
width="2" src="images/dot.gif" /></td></tr>
<tr><td height="2" bgcolor="$!{skin.BackgroundColor}"><img height="2" width="2"
src="images/dot.gif" /></td></tr>
</table>
<table bgcolor="$!{skin.BackgroundColor}" cellspacing="0" width="100%" border="0"
cellpadding="0">
<tr>
<td valign="top" width="100%">
$portlet.getContent($data)
</td>
</tr>
</table>
#end
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]