portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r504232 - /portals/jetspeed-2/trunk/src/webapp/decorations/portlet/decorator.vm
Date Tue, 06 Feb 2007 18:27:38 GMT
Author: taylor
Date: Tue Feb  6 10:27:37 2007
New Revision: 504232

URL: http://svn.apache.org/viewvc?view=rev&rev=504232
Log:
patch from Vitaly Baranovsky to allow programmatic control by portlets to control (hide) surrounding
portlet decorator

Modified:
    portals/jetspeed-2/trunk/src/webapp/decorations/portlet/decorator.vm

Modified: portals/jetspeed-2/trunk/src/webapp/decorations/portlet/decorator.vm
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/src/webapp/decorations/portlet/decorator.vm?view=diff&rev=504232&r1=504231&r2=504232
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/decorations/portlet/decorator.vm (original)
+++ portals/jetspeed-2/trunk/src/webapp/decorations/portlet/decorator.vm Tue Feb  6 10:27:37
2007
@@ -1,58 +1,59 @@
-#*
-Copyright 2004 The Apache Software Foundation
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-*#
-
-#* ************************* READ ME *************************************
-This is the default template to be used for rendering decorations.  If you 
-find you cannot accomplish your design requirements by defining a custom
-style sheet for your decoration, you can define your own decorator.vm in 
-the root of your decortaion.  This will be used instead of the default.
-************************************************************************ *#
-
-#set($decoration = $f.decoration)
-#set($actions = $decoration.actions)
-
-<!-- Begin: Fragment: ${f.id} Decoration: ${decoration.Name} -->
-
-<div id="${f.id}" class="portlet ${decoration.baseCSSClass}">
-  #set($solo = $jetspeed.MappedWindowState.toString()=="solo")
-  #if (!$solo)
-    <div class="PTitle" >
-      <div class="PTitleContent">	
-        #set ($ws=$jetspeed.MappedWindowState)
-        
-        $!jetspeed.getTitle($jetspeed.getCurrentPortletEntity(), $f)
-      </div>
-    
-      #PortletActionBar($decoration)
-	
-    </div>
-  #end    
-  #if (!$jetspeed.isHidden($f) && $jetspeed.WindowState.toString() != "minimized")
-    #if (!$solo)
-      <div class="PContentBorder">
-    #end
-    <div class="PContent"><span style="line-height:0.005px;">&nbsp;</span>
-      $f.renderedContent
-    </div>
-    #if (!$solo)
-      </div>
-    #end
-  #end
-</div>
-
-<!-- END: Fragment: ${f.id} Decoration: ${decoration.Name} -->
-
-
+#*
+Copyright 2004 The Apache Software Foundation
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*#
+
+#* ************************* READ ME *************************************
+This is the default template to be used for rendering decorations.  If you 
+find you cannot accomplish your design requirements by defining a custom
+style sheet for your decoration, you can define your own decorator.vm in 
+the root of your decortaion.  This will be used instead of the default.
+************************************************************************ *#
+
+#set($decoration = $f.decoration)
+#set($actions = $decoration.actions)
+
+<!-- Begin: Fragment: ${f.id} Decoration: ${decoration.Name} -->
+
+<div id="${f.id}" class="portlet ${decoration.baseCSSClass}">
+  #set($solo = $jetspeed.MappedWindowState.toString()=="solo")
+   #set($hidePortlet = $renderRequest.getAttribute("js_${jetspeed.CurrentFragment.Id}_HideDecorator"))

+ #if (!$solo && !$hidePortlet)
+    <div class="PTitle" >
+      <div class="PTitleContent">	
+        #set ($ws=$jetspeed.MappedWindowState)
+        
+        $!jetspeed.getTitle($jetspeed.getCurrentPortletEntity(), $f)
+      </div>
+    
+      #PortletActionBar($decoration)
+	
+    </div>
+ #end    
+ #if (!$jetspeed.isHidden($f) && !$hidePortlet && $jetspeed.WindowState.toString()
!= "minimized")
+    #if (!$solo)
+      <div class="PContentBorder">
+    #end
+    <div class="PContent"><span style="line-height:0.005px;">&nbsp;</span>
+      $f.renderedContent
+    </div>
+    #if (!$solo)
+      </div>
+    #end
+  #end
+</div>
+
+<!-- END: Fragment: ${f.id} Decoration: ${decoration.Name} -->
+
+



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


Mime
View raw message