Author: hoang_to
Date: 2009-12-23 22:31:15 -0500 (Wed, 23 Dec 2009)
New Revision: 1140
Modified:
portal/trunk/portlet/exoadmin/src/main/webapp/groovy/applicationregistry/webui/component/UIGadgetInfo.gtmpl
Log:
GTNPORTAL-387: Add default thumbnail to local gadget
Modified:
portal/trunk/portlet/exoadmin/src/main/webapp/groovy/applicationregistry/webui/component/UIGadgetInfo.gtmpl
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/webapp/groovy/applicationregistry/webui/component/UIGadgetInfo.gtmpl 2009-12-23
09:50:44 UTC (rev 1139)
+++
portal/trunk/portlet/exoadmin/src/main/webapp/groovy/applicationregistry/webui/component/UIGadgetInfo.gtmpl 2009-12-24
03:31:15 UTC (rev 1140)
@@ -5,6 +5,10 @@
boolean selectorRender = uicomponent.getChild(UICategorySelector.class).isRendered();
String srcBGError =
"/eXoResources/skin/sharedImages/Icon80x80/DefaultPortlet.png";
String categoryNames = uicomponent.getCategorieNames();
+ String gadgetThumbnail = gadget.getThumbnail();
+ if(gadgetThumbnail == null || gadgetThumbnail.length() == 0){
+ gadgetThumbnail = srcBGError ;
+ }
%>
<div class="UIGadgetInfo" id="$uicomponent.id">
<div class="UIBreadcumb">
@@ -19,7 +23,7 @@
</div>
<div class="Application">
<div class="PortletIcons">
- <img src="<%= gadget.getThumbnail() %>"
onError="src='$srcBGError'" alt=""/>
+ <img src="$gadgetThumbnail"
onError="src='$srcBGError'" alt=""/>
</div>
<div class="ApplicationContent">
<table class="TitleBarApplication">
Show replies by date