portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r377046 - /portals/jetspeed-2/trunk/src/webapp/WEB-INF/jetspeed_macros.vm
Date Sat, 11 Feb 2006 20:23:56 GMT
Author: ate
Date: Sat Feb 11 12:23:56 2006
New Revision: 377046

URL: http://svn.apache.org/viewcvs?rev=377046&view=rev
Log:
Removed the PageActionBar macro "Add a Portlet" action icon.
This now will be provided through the enhanced "nested layout" supporting customizer for each
layout.
Also added a few generic macros for accessing Properties.
See http://issues.apache.org/jira/browse/JS2-468.

Modified:
    portals/jetspeed-2/trunk/src/webapp/WEB-INF/jetspeed_macros.vm

Modified: portals/jetspeed-2/trunk/src/webapp/WEB-INF/jetspeed_macros.vm
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/src/webapp/WEB-INF/jetspeed_macros.vm?rev=377046&r1=377045&r2=377046&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/WEB-INF/jetspeed_macros.vm (original)
+++ portals/jetspeed-2/trunk/src/webapp/WEB-INF/jetspeed_macros.vm Sat Feb 11 12:23:56 2006
@@ -103,11 +103,6 @@
    
    <a href="${_action.Action}" title="${_action.Name}" class="action pageAction" ><img
src="${_action.Link}" alt="${_action.Alt}" border="0" /></a>
   #end
-  #if($editing == true)
-   #set ($chooser = "${jetspeed.basePath}/system/customizer/portlet-selector.psml")
-
-   <a href="javascript:openWindow('$response.encodeURL($chooser)')"><img src="#GetPageResource('images/select.gif')"
border="0" title="Add a Portlet"/></a>
-  #end       
  </div>
  #end
 #end
@@ -178,4 +173,33 @@
         <span class="separator"></span>
     #end    
    </div>
+#end
+
+#macro (int $_variable)
+  #set($_aint=0)
+  #set($_variable=$_aint.valueOf("$_variable"))
+#end
+
+#macro (bool $_variable)
+  #set($_abool=true)
+  #set($_variable=$_abool.valueOf("$_variable"))
+#end
+
+#macro (getProperty $_property $_properties $_name $_default)
+  #set($_value = "")
+  #set($_value = $_properties.getProperty($_name))
+  #set($_property = $_default)
+  #if($_value != "")
+    #set($_property=$_value)
+  #end
+#end
+
+#macro (getIntProperty $_property $_properties $_name $_default)
+  #getProperty($_property $_properties $_name $_default)
+  #int($_property)
+#end
+
+#macro (getBoolProperty $_property $_properties $_name $_default)
+  #getProperty($_property $_properties $_name $_default)
+  #bool($_property)
 #end



---------------------------------------------------------------------
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