[gatein-commits] gatein SVN: r3941 - portal/branches/branched-r3845/portlet/exoadmin/src/main/webapp/groovy/admintoolbar/webui/component.
do-not-reply at jboss.org
do-not-reply at jboss.org
Thu Aug 26 05:32:37 EDT 2010
Author: phuong_vu
Date: 2010-08-26 05:32:37 -0400 (Thu, 26 Aug 2010)
New Revision: 3941
Modified:
portal/branches/branched-r3845/portlet/exoadmin/src/main/webapp/groovy/admintoolbar/webui/component/UIUserToolBarSitePortlet.gtmpl
Log:
GTNPORTAL-1157 Need to remove Arrow icon when all page(node) was deleted in protal navigation
Modified: portal/branches/branched-r3845/portlet/exoadmin/src/main/webapp/groovy/admintoolbar/webui/component/UIUserToolBarSitePortlet.gtmpl
===================================================================
--- portal/branches/branched-r3845/portlet/exoadmin/src/main/webapp/groovy/admintoolbar/webui/component/UIUserToolBarSitePortlet.gtmpl 2010-08-26 08:41:30 UTC (rev 3940)
+++ portal/branches/branched-r3845/portlet/exoadmin/src/main/webapp/groovy/admintoolbar/webui/component/UIUserToolBarSitePortlet.gtmpl 2010-08-26 09:32:37 UTC (rev 3941)
@@ -22,12 +22,17 @@
boolean isCurrent = false;
String clazz = "";
String href = "#";
+
+ def navigation = uicomponent.getCurrentPortalNavigation();
+ def nodes = navigation.getNodes();
+
for(int i = 0; i < uicomponent.getAllPortalNames().size(); i++) {
String portal = uicomponent.getAllPortalNames().get(i);
if(portal.equals(uicomponent.getCurrentPortal())) {
isCurrent = true;
- } else isCurrent = false;
- if(isCurrent) clazz = "class='ArrowIcon'";
+ } else isCurrent = false;
+
+ if(isCurrent && nodes.size() > 0) clazz = "class='ArrowIcon'";
else clazz = "";
href = uicomponent.getPortalURI(portal);
EntityEncoder entityEncoder = EntityEncoder.FULL;
More information about the gatein-commits
mailing list