You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by si...@apache.org on 2011/10/27 15:43:31 UTC
svn commit: r1189756 -
/maven/sandbox/trunk/skin/maven-fluido-skin/src/main/resources/META-INF/maven/site.vm
Author: simonetripodi
Date: Thu Oct 27 13:43:31 2011
New Revision: 1189756
URL: http://svn.apache.org/viewvc?rev=1189756&view=rev
Log:
added the option to disable the sidebar (and change the layout!), use custom.fluidoSkin.sideBarEnabled = false - Thanks to both Ivan and Olivier for the hints!
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=1189756&r1=1189755&r2=1189756&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 Thu Oct 27 13:43:31 2011
@@ -598,7 +598,19 @@
</div>
#end
+ #if ( $decoration.custom.getChild('fluidoSkin')
+ && $decoration.custom.getChild( 'fluidoSkin' ).getChild( 'sideBarEnabled' )
+ && 'false' == $decoration.custom.getChild( 'fluidoSkin' ).getChild( 'sideBarEnabled' ).getValue() )
+ #set ( $sideBarEnabled = false )
+ #else
+ #set ( $sideBarEnabled = true )
+ #end
+
+ #if ( $sideBarEnabled )
<div class="container-fluid">
+ #else
+ <div class="container">
+ #end
#if ( ($decoration.bannerLeft.name && $decoration.bannerLeft.name != $project.name || $decoration.bannerLeft.src || $decoration.bannerLeft.href ) || $decoration.bannerRight )
<div id="banner">
<div class="pull-left">#banner( $decoration.bannerLeft "bannerLeft" )</div>
@@ -614,6 +626,7 @@
</ul>
</div>
+ #if ( $sideBarEnabled )
<div id="leftColumn" class="sidebar">
<div class="well">
#publishDate( "navigation-top" $decoration.publishDate $decoration.version )
@@ -624,6 +637,7 @@
#poweredByLogo( $decoration.poweredBy )
</div>
</div>
+ #end
<div id="bodyColumn" class="content">
<div id="contentBox">
@@ -642,6 +656,11 @@
<p>$StringUtils.replace( $foot, '@project.name@', ${project.name} )</p>
#end
#end
+ #if ( !$sideBarEnabled )
+ <p id="poweredBy" class="pull-right">
+ #poweredByLogo( $decoration.poweredBy )
+ </p>
+ #end
</div>
</footer>
</body>