portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wea...@apache.org
Subject svn commit: r355246 - /portals/jetspeed-2/trunk/src/webapp/WEB-INF/jetspeed_macros.vm
Date Thu, 08 Dec 2005 22:24:36 GMT
Author: weaver
Date: Thu Dec  8 14:24:35 2005
New Revision: 355246

URL: http://svn.apache.org/viewcvs?rev=355246&view=rev
Log:
adjusting white space in macros

Modified:
    portals/jetspeed-2/trunk/src/webapp/WEB-INF/jetspeed_macros.vm

Modified: portals/jetspeed-2/trunk/src/webapp/WEB-INF/jetspeed_macros.vm
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/src/webapp/WEB-INF/jetspeed_macros.vm?rev=355246&r1=355245&r2=355246&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/WEB-INF/jetspeed_macros.vm (original)
+++ portals/jetspeed-2/trunk/src/webapp/WEB-INF/jetspeed_macros.vm Thu Dec  8 14:24:35 2005
@@ -116,52 +116,42 @@
 #end
 
 #macro(PagesMenu)
-    #set($_pages = $site.getMenu("pages").elements)
-    <div id="pages-menu" class="menu">
-    #foreach($_page in $_pages)
-        #if($_page.isSelected($site))
-            #set($_cssClass = "link page-link selected")
-        #else
-            #set($_cssClass = "link page-link")
-        #end
-        
-        <a href="portal${_page.url}" class="$!{_cssClass}" title="${_page.getTitle($preferedLocale)}">$_page.getTitle($preferedLocale)</a>
-        <span class="separator"></span>
-    #end    
-    </div>
+#set($_pages = $site.getMenu("pages").elements)
+<div id="pages-menu" class="menu">#foreach($_page in $_pages)
+#if($_page.isSelected($site))
+	#set($_cssClass = "link page-link selected")
+#else
+	#set($_cssClass = "link page-link")
+#end
+<a href="portal${_page.url}" class="$!{_cssClass}" title="${_page.getTitle($preferedLocale)}">$_page.getTitle($preferedLocale)</a><span
class="separator"></span>#end  
+</div>
 #end
 
 #macro(NavigationsMenu)
-    #set($_navigations= $site.getMenu("navigations").elements)
-    #set($_seperatorCount = 0)    
-    <div id="navgiations-menu" class="menu">
-    #foreach($_element in $_navigations)
-        #set($_type = $_element.elementType)
-        
-        #if($_type == "separator")
-          #if($_seperatorCount > 0)            
-           </div>
-          #end
-          #set($_seperatorCount = $_seperatorCount + 1)          
-           <div id="seperator-${_seperatorCount}" class="menu-group">
-             <span class="title">$_element.getText($preferedLocale)</span>
-        #elseif($_type == "option")
-           #if($_element.type == "link")
-             #set($_url = $_element.url)
-             #set($_cssClass = "link external-link")
-           #else
-             #set($_url = "portal${_element.url}")
-             #set($_cssClass = "link page-link")
-           #end     
-           
-           #if($_element.isSelected($site))
-             #set($_cssClass= "$_cssClass selected")
-           #end
-             <a href="$!{_url}" class="link" title="${_element.getTitle($preferedLocale)}">${_element.getTitle($preferedLocale)}</a>
-             <span class="separator"></span>
-        #end
-    #end      
-    </div>
+#set($_navigations= $site.getMenu("navigations").elements)
+#set($_seperatorCount = 0)    
+<div id="navgiations-menu" class="menu">#foreach($_element in $_navigations)
+#set($_type = $_element.elementType)
+#if($_type == "separator")
+#if($_seperatorCount > 0)            
+</div>
+#end
+#set($_seperatorCount = $_seperatorCount + 1)          
+<div id="seperator-${_seperatorCount}" class="menu-group"><span class="title">$_element.getText($preferedLocale)</span>
+#elseif($_type == "option")
+#if($_element.type == "link")
+  #set($_url = $_element.url)
+  #set($_cssClass = "link external-link")
+#else
+  #set($_url = "portal${_element.url}")
+  #set($_cssClass = "link page-link")
+#end     
+#if($_element.isSelected($site))
+ #set($_cssClass= "$_cssClass selected")
+#end<a href="$!{_url}" class="link" title="${_element.getTitle($preferedLocale)}">${_element.getTitle($preferedLocale)}</a><span
class="separator"></span>
+#end
+#end      
+</div>
 #end
 
 #macro (Breadcrumbs)



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


Mime
View raw message