mirror of https://github.com/apache/maven.git
MNG-1095: handle locale images in the maven-site.vm
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@295115 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c66610a6e4
commit
fc1cf58818
|
@ -10,6 +10,10 @@
|
||||||
|
|
||||||
#if( $e.getChild( "src" ) )
|
#if( $e.getChild( "src" ) )
|
||||||
#set ( $src = $e.getChild( "src" ).getValue() )
|
#set ( $src = $e.getChild( "src" ).getValue() )
|
||||||
|
#if ( ! ( $src.toLowerCase().startsWith("http") || $src.toLowerCase().startsWith("https") ) )
|
||||||
|
#set ( $src = $PathTool.calculateLink( $src, $relativePath ) )
|
||||||
|
#set ( $src = $src.replaceAll( "\\", "/" ) )
|
||||||
|
#end
|
||||||
#if ( $e.getChild( "alt" ) )
|
#if ( $e.getChild( "alt" ) )
|
||||||
#set ( $alt = $e.getChild( "alt" ).getValue() )
|
#set ( $alt = $e.getChild( "alt" ).getValue() )
|
||||||
#else
|
#else
|
||||||
|
@ -25,7 +29,7 @@
|
||||||
#else
|
#else
|
||||||
</span>
|
</span>
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
|
|
||||||
#macro ( links )
|
#macro ( links )
|
||||||
|
@ -35,7 +39,7 @@
|
||||||
#set ( $counter = $counter + 1 )
|
#set ( $counter = $counter + 1 )
|
||||||
<a href="$item.getAttribute( "href" )">$item.getAttribute( "name" )</a>
|
<a href="$item.getAttribute( "href" )">$item.getAttribute( "name" )</a>
|
||||||
#if ( $links.getChildCount() > $counter )
|
#if ( $links.getChildCount() > $counter )
|
||||||
|
|
|
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
|
@ -46,15 +50,15 @@
|
||||||
#set ( $subitemHref = $PathTool.calculateLink( $subitem.getAttribute( "href" ), $relativePath ) )
|
#set ( $subitemHref = $PathTool.calculateLink( $subitem.getAttribute( "href" ), $relativePath ) )
|
||||||
#set ( $subitemHref = $subitemHref.replaceAll( "\\", "/" ) )
|
#set ( $subitemHref = $subitemHref.replaceAll( "\\", "/" ) )
|
||||||
|
|
||||||
#if ( $currentFileName == $subitemHref )
|
#if ( $currentFileName == $subitemHref )
|
||||||
#set ( $display = true )
|
#set ( $display = true )
|
||||||
#end
|
#end
|
||||||
|
|
||||||
#displayTree( $display $subitem )
|
#displayTree( $display $subitem )
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
|
|
||||||
#macro ( menuItem $item )
|
#macro ( menuItem $item )
|
||||||
#set ( $collapse = "none" )
|
#set ( $collapse = "none" )
|
||||||
#set ( $currentItemHref = $PathTool.calculateLink( $item.getAttribute( "href" ), $relativePath ) )
|
#set ( $currentItemHref = $PathTool.calculateLink( $item.getAttribute( "href" ), $relativePath ) )
|
||||||
|
@ -68,13 +72,13 @@
|
||||||
## By default collapsed
|
## By default collapsed
|
||||||
#set ( $collapse = "collapsed" )
|
#set ( $collapse = "collapsed" )
|
||||||
#end
|
#end
|
||||||
|
|
||||||
#if ( $currentFileName == $currentItemHref )
|
#if ( $currentFileName == $currentItemHref )
|
||||||
#set ( $collapse = "expanded" )
|
#set ( $collapse = "expanded" )
|
||||||
#end
|
#end
|
||||||
#end
|
#end
|
||||||
<li class="$collapse">
|
<li class="$collapse">
|
||||||
#if ( $currentFileName == $currentItemHref )
|
#if ( $currentFileName == $currentItemHref )
|
||||||
<strong><a href="$currentItemHref">$item.getAttribute( "name" )</a></strong>
|
<strong><a href="$currentItemHref">$item.getAttribute( "name" )</a></strong>
|
||||||
#else
|
#else
|
||||||
<a href="$currentItemHref">$item.getAttribute( "name" )</a>
|
<a href="$currentItemHref">$item.getAttribute( "name" )</a>
|
||||||
|
|
Loading…
Reference in New Issue