maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rfscho...@apache.org
Subject svn commit: r1183617 - /maven/sandbox/trunk/skin/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm
Date Sat, 15 Oct 2011 10:22:30 GMT
Author: rfscholte
Date: Sat Oct 15 10:22:30 2011
New Revision: 1183617

URL: http://svn.apache.org/viewvc?rev=1183617&view=rev
Log:
Hide External Links in nav when it is empty

Modified:
    maven/sandbox/trunk/skin/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm

Modified: maven/sandbox/trunk/skin/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/skin/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm?rev=1183617&r1=1183616&r2=1183617&view=diff
==============================================================================
--- maven/sandbox/trunk/skin/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm (original)
+++ maven/sandbox/trunk/skin/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm Sat
Oct 15 10:22:30 2011
@@ -581,15 +581,16 @@
             <li><h4><a href="$relativePath/index.html">$project.name</a></h4></li>
             #topMenu( $decoration.body.menus )
           </ul>
-
-          <ul class="nav secondary-nav">
-            <li class="menu">
-              <a href="#" class="menu">External Links</a>
-              <ul class="menu-dropdown">
-                #topLinks( $decoration.body.links )
-              </ul>
-            </li>
-          </ul>
+          #if( $decoration.body.links.size() > 0 )
+            <ul class="nav secondary-nav">
+              <li class="menu">
+                <a href="#" class="menu">External Links</a>
+                <ul class="menu-dropdown">
+                  #topLinks( $decoration.body.links )
+                </ul>
+              </li>
+            </ul>
+          #end
         </div>
       </div>
     </div>



Mime
View raw message