portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject cvs commit: jakarta-jetspeed-2/portal/src/webapp/WEB-INF/templates/layout/html/columns layout.vm
Date Fri, 06 Aug 2004 19:06:41 GMT
weaver      2004/08/06 12:06:41

  Modified:    portal/src/webapp/WEB-INF/templates/layout/html/columns
                        layout.vm
  Log:
  Prettied the positioning metaphor
  
  Revision  Changes    Path
  1.10      +63 -27    jakarta-jetspeed-2/portal/src/webapp/WEB-INF/templates/layout/html/columns/layout.vm
  
  Index: layout.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-jetspeed-2/portal/src/webapp/WEB-INF/templates/layout/html/columns/layout.vm,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- layout.vm	6 Aug 2004 00:33:22 -0000	1.9
  +++ layout.vm	6 Aug 2004 19:06:41 -0000	1.10
  @@ -65,38 +65,74 @@
   			#set($col = $f.getProperties($layoutType).get(1).intValue)
   		#if($editing)<div id="_$f.id"> 
   		
  -		  <div style="position:relative; top:10px; left:0; width:100%; height:100%; border:
solid thin blue; ">
  -			
  -			#if($col > 0)			
  -			  #set($leftUrl = $renderResponse.createRenderURL())	
  -			  $!leftUrl.setParameter("moveBy","-1,0")
  -			  $!leftUrl.setParameter("fragmentId","$f.id")			 
  -			  <a href="$leftUrl">Move Left</a>
  -			#end  
  -			#if($col < $lastColumn )
  -			  #set($rightUrl = $renderResponse.createRenderURL())	
  -			  $!rightUrl.setParameter("moveBy","1,0")
  -			  $!rightUrl.setParameter("fragmentId","$f.id")
  -			  <a href="$rightUrl">Move Right</a>
  -			#end
  -			#if($row > 0)
  -			 #set($upUrl = $renderResponse.createRenderURL())	
  -			  $!upUrl.setParameter("moveBy","0,-1")
  -			  $!upUrl.setParameter("fragmentId","$f.id")
  -			  <a href="$upUrl">Move Up</a>
  -			#end 
  -			  #set($downUrl = $renderResponse.createRenderURL())	
  -			  $!downUrl.setParameter("moveBy","0,1")
  -			  $!downUrl.setParameter("fragmentId","$f.id")
  -			<a href="$downUrl">Move Down</a>
  -	  
  -		#end	
  +		  <div style="position:relative; top:10px; left:0; width:100%; height:100%;">
  +			<div id="_$f.id_toolBox"  >
  +			 
  +			  <table cellpadding="0" cellspacing="0" >
  +				 <tr>
  +					<td >
  +					
  +					</td>
  +					<td align="center" onMouseover="this.style.backgroundColor='red'" onMouseout="this.style.backgroundColor=''">
  +						#if($row > 0)
  +			             #set($upUrl = $renderResponse.createRenderURL())	
  +			             $!upUrl.setParameter("moveBy","0,-1")
  +			             $!upUrl.setParameter("fragmentId","$f.id")
  +						 <a href="$upUrl"><img src="content/images/movePortletUp.gif" border="0"
title="Move Portlet Up"/></a>
  +					   #end
  +					</td>
  +					<td>
  +				      
  +					</td>
  +				 </tr>
  +				 
  +				 <tr>
  +					<td align="right" onMouseover="this.style.backgroundColor='red'" onMouseout="this.style.backgroundColor=''">
  +						#if($col > 0)			
  +			             #set($leftUrl = $renderResponse.createRenderURL())	
  +			             $!leftUrl.setParameter("moveBy","-1,0")
  +			             $!leftUrl.setParameter("fragmentId","$f.id")	
  +						 <a href="$leftUrl"><img src="content/images/movePortletLeft.gif" border="0"
title="Move Portlet Left"/></a>
  +						#end
  +					</td>
  +					<td align="center" style="font-size:smaller; font-weight:bold" >
  +			          &nbsp;  Position &nbsp;
  +					</td>
  +					<td align="left" onMouseover="this.style.backgroundColor='red'" onMouseout="this.style.backgroundColor=''">
  +						#if($col < $lastColumn )
  +						 #set($rightUrl = $renderResponse.createRenderURL())	
  +			             $!rightUrl.setParameter("moveBy","1,0")
  +			             $!rightUrl.setParameter("fragmentId","$f.id")
  +						 <a href="$rightUrl"><img src="content/images/movePortletRight.gif" border="0"
title="Move Portlet Right"/></a>
  +					    #end
  +					</td>
  +				 </tr>
  +				 
  +				 
  +				 
  +				 
  +				 <tr>
  +					<td ></td>
  +					<td align="center" onMouseover="this.style.backgroundColor='red'" onMouseout="this.style.backgroundColor=''">
  +					  #set($lastRow = $renderRequest.getAttribute("lastRowForColumn").get($col))
  +					  #if($row < $lastRow)						
  +					    #set($downUrl = $renderResponse.createRenderURL())	
  +			            $!downUrl.setParameter("moveBy","0,1")
  +			            $!downUrl.setParameter("fragmentId","$f.id")
  +					    <a href="$downUrl"><img src="content/images/movePortletDown.gif" border="0"
title="Move Portlet Down"/></a>
  +					  #end
  +					</td>
  +					<td ></td>
  +				 </tr>
  +			  </table>
  +			</div>
  +		 #end	
   				
                   ## get the decorated Portlet content
                  $jetspeed.decorateAndInclude($f)
   		 #if($editing)
   		   </div>
  -		  </div> 
  +		  </div>
   		   
   		 #end			  
            </td>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message