From do-not-reply at jboss.org Wed Dec 23 22:31:16 2009 Content-Type: multipart/mixed; boundary="===============1924081865969122256==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: gatein-commits at lists.jboss.org Subject: [gatein-commits] gatein SVN: r1140 - portal/trunk/portlet/exoadmin/src/main/webapp/groovy/applicationregistry/webui/component. Date: Wed, 23 Dec 2009 22:31:16 -0500 Message-ID: <200912240331.nBO3VGL9005072@svn01.web.mwc.hst.phx2.redhat.com> --===============1924081865969122256== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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/applicationr= egistry/webui/component/UIGadgetInfo.gtmpl =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- portal/trunk/portlet/exoadmin/src/main/webapp/groovy/applicationregistr= y/webui/component/UIGadgetInfo.gtmpl 2009-12-23 09:50:44 UTC (rev 1139) +++ portal/trunk/portlet/exoadmin/src/main/webapp/groovy/applicationregistr= y/webui/component/UIGadgetInfo.gtmpl 2009-12-24 03:31:15 UTC (rev 1140) @@ -5,6 +5,10 @@ boolean selectorRender =3D uicomponent.getChild(UICategorySelector.class)= .isRendered(); String srcBGError =3D "/eXoResources/skin/sharedImages/Icon80x80/DefaultP= ortlet.png"; String categoryNames =3D uicomponent.getCategorieNames(); + String gadgetThumbnail =3D gadget.getThumbnail(); + if(gadgetThumbnail =3D=3D null || gadgetThumbnail.length() =3D=3D 0){ + gadgetThumbnail =3D srcBGError ; + } %>
@@ -19,7 +23,7 @@
- " onError=3D"src=3D'$srcBGEr= ror'" alt=3D""/> + 3D""=
--===============1924081865969122256==--