You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by we...@apache.org on 2005/06/13 20:09:44 UTC

svn commit: r190469 - /portals/jetspeed-2/trunk/portal/src/webapp/WEB-INF/decorations/portlet/html/tigris/decorator.vm

Author: weaver
Date: Mon Jun 13 11:09:44 2005
New Revision: 190469

URL: http://svn.apache.org/viewcvs?rev=190469&view=rev
Log:
Better error reporting

Added:
    portals/jetspeed-2/trunk/portal/src/webapp/WEB-INF/decorations/portlet/html/tigris/decorator.vm

Added: portals/jetspeed-2/trunk/portal/src/webapp/WEB-INF/decorations/portlet/html/tigris/decorator.vm
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/portal/src/webapp/WEB-INF/decorations/portlet/html/tigris/decorator.vm?rev=190469&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/portal/src/webapp/WEB-INF/decorations/portlet/html/tigris/decorator.vm (added)
+++ portals/jetspeed-2/trunk/portal/src/webapp/WEB-INF/decorations/portlet/html/tigris/decorator.vm Mon Jun 13 11:09:44 2005
@@ -0,0 +1,90 @@
+#*
+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.
+*#
+
+#set($myPage = $jetspeed.page)
+
+#set($myF = $jetspeed.currentFragment)
+
+#set($myPE = $jetspeed.currentPortletEntity)
+
+#set($actions = $jetspeed.DecoratorActions)
+
+<!-- Begin portlet/html/tigris/decorator.vm  -->
+
+<div id="portlet-${myF.id}" class="portlet-tigris" >
+<table border="0" cellpadding="0" cellspacing="0" width="100%">
+##
+## Portlet Title Bar
+##
+#set ($cspan = 2)
+
+  <tr>
+    <td class="PTitle">
+
+      <table  border="0" cellpadding="0" cellspacing="0" width="100%">
+        <tr>
+          <td align="left" valign="middle" class="PTitleContent">
+            $jetspeed.getTitle($myPE, $myF)
+          </td>
+          <td align="right" valign="middle" >
+            <table border="0" cellpadding="0" cellspacing="0" >
+              <tr>       
+#foreach ($action in $actions)
+                <td align="right" valign="middle" >
+                  <a href="${action.Action}" title="${action.Name}" ><img src="${action.Link}" alt="${action.Alt}" border="0"></a>
+                </td>
+#end
+              </tr>  
+            </table>
+          </td>
+        </tr>
+      </table>
+    </td>
+    
+  </tr>
+
+##
+## Portlet Content
+##
+#set($portletErrors = $jetspeed.errors)
+#if (!$jetspeed.isHidden($myF) || $jetspeed.WindowState != "minimized")
+  <tr>
+    <td class="PContent">	
+	#if($portletErrors.size() > 0)
+      The following errors ocurred:<br />
+	  #foreach($errorMsg in $portletErrors)
+	  <p class="portlet-msg-error">$errorMsg</p>
+	  #end
+    #end
+
+   	   $myF.renderedContent
+    </td>   
+  </tr>
+#end
+
+
+##
+## Portlet Bottom
+##
+  <tr>
+    <td class="PBottom" style="font-size:1pt;" nowrap="true">&nbsp;</td>
+  </tr>
+</table>
+</div>
+
+<!--  portlet/html/tigris/decorator.vm -->
+
+



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