[gatein-commits] gatein SVN: r7568 - portal/trunk/portlet/web/src/main/webapp/groovy/portal/webui/component.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Sep 29 20:34:18 EDT 2011


Author: bdaw
Date: 2011-09-29 20:34:17 -0400 (Thu, 29 Sep 2011)
New Revision: 7568

Modified:
   portal/trunk/portlet/web/src/main/webapp/groovy/portal/webui/component/UIPortalNavigation.gtmpl
Log:
GTNPORTAL-2119 Typo in UIPortalNavigation.gtmpl

Modified: portal/trunk/portlet/web/src/main/webapp/groovy/portal/webui/component/UIPortalNavigation.gtmpl
===================================================================
--- portal/trunk/portlet/web/src/main/webapp/groovy/portal/webui/component/UIPortalNavigation.gtmpl	2011-09-30 00:07:13 UTC (rev 7567)
+++ portal/trunk/portlet/web/src/main/webapp/groovy/portal/webui/component/UIPortalNavigation.gtmpl	2011-09-30 00:34:17 UTC (rev 7568)
@@ -1,4 +1,4 @@
-<% 
+<% 
 	import org.exoplatform.portal.mop.user.UserNode;
 	import org.exoplatform.web.application.JavascriptManager;
 	import org.exoplatform.portal.webui.util.Util;
@@ -6,10 +6,10 @@
 	import javax.portlet.MimeResponse;
 	import org.exoplatform.portal.application.PortalRequestContext;
 	import org.exoplatform.web.url.PortalURL;
-	import org.exoplatform.web.url.navigation.NavigationResource;
-	
-	def rcontext = _ctx.getRequestContext();
-	JavascriptManager jsmanager = rcontext.getJavascriptManager();
+	import org.exoplatform.web.url.navigation.NavigationResource;
+	
+	def rcontext = _ctx.getRequestContext();
+	JavascriptManager jsmanager = rcontext.getJavascriptManager();
 	jsmanager.importJavascript('eXo.webui.UIHorizontalTabs');
 	jsmanager.importJavascript('eXo.portal.UIPortalNavigation');
 	jsmanager.addOnLoadJavascript('eXo.portal.UIPortalNavigation.onLoad');	
@@ -20,14 +20,14 @@
 	PortalURL nodeURL = nodeurl();
 
 	public void renderChildrenContainer(UserNode node, PortalURL nodeURL) {
-	   print """
+	   print """
 	   		<ul class="MenuItemContainer " style="display: none;">
         """;
                                     for(child in node.getChildren()) {
 										renderChildNode(child, nodeURL);
 									}
-       print """				
-			</ul>
+       print """				
+			</ul>
 		""";	  
 	}  
 	
@@ -63,8 +63,8 @@
 			nodeURL.setAjax(uicomponent.isUseAjax());
 			actionLink = nodeURL.toString();
 		} 
-		print """
-			<li class="MenuItem $tabStyleNavigation $arrowIcon" title="$title" $getNodeURL>
+		print """
+			<li class="MenuItem $tabStyleNavigation $arrowIcon" title="$title" $getNodeURL>
 				<a  class="ItemIcon $icon" href="$actionLink">$label</a>
 		""";
 		
@@ -83,7 +83,7 @@
 		if(rootNodes != null) {
 			for(nav in rootNodes) {					
 				def childs = nav.getChildren();              
-				for(Node node in childs) {
+				for(UserNode node in childs) {
 					String tabStyleNavigation = "NormalNavigationTab";
 					if(selectedNode != null && node.getId() == selectedNode.getId()) {
 							tabStyleNavigation = "SelectedNavigationTab";
@@ -92,10 +92,10 @@
 					if (node.getChildrenCount() > 0) {
 					    javax.portlet.ResourceURL resourceURL = res.createResourceURL();
 						resourceURL.setResourceID(node.getURI());										
-	%>			
+	%>			
 					<li class="UITab $tabStyleNavigation" exo:getNodeURL="<%=resourceURL.toString() %>">
 				<%	} else { %>
-					<li class="UITab $tabStyleNavigation">
+					<li class="UITab $tabStyleNavigation">
 				<%  } 					
 								String arrowIcon = "";
 								if (node.getChildrenCount() > 0) {
@@ -130,8 +130,8 @@
 			}
 		}
 	%>
-	<li class="ScrollButtons">
-		<a title="<%= _ctx.appRes("UIPortalNavigation.Label.Previous") %>" class="ScrollLeftButton"></a>
-		<a title="<%= _ctx.appRes("UIPortalNavigation.Label.Next") %>" class="ScrollRightButton"></a>	
-	</li>
+	<li class="ScrollButtons">
+		<a title="<%= _ctx.appRes("UIPortalNavigation.Label.Previous") %>" class="ScrollLeftButton"></a>
+		<a title="<%= _ctx.appRes("UIPortalNavigation.Label.Next") %>" class="ScrollRightButton"></a>	
+	</li>
 </ul>



More information about the gatein-commits mailing list