From: Olivier Lamy Date: Tue, 11 Oct 2011 14:00:24 +0000 (+0000) Subject: fix breadcrumbs when using position right X-Git-Tag: archiva-1.4-M1~35 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=44c25fb16c63191a6f7aa8553e84017a161e3356;p=archiva.git fix breadcrumbs when using position right git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1181787 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-docs/src/maven-site.vm b/archiva-docs/src/maven-site.vm index 082f52ad2..c613411e4 100644 --- a/archiva-docs/src/maven-site.vm +++ b/archiva-docs/src/maven-site.vm @@ -113,7 +113,7 @@ #end #end ## -#macro ( breadcrumbs $breadcrumbs ) +#macro ( breadcrumbs $breadcrumbs $cssClass ) #foreach( $item in $breadcrumbs ) #set ( $currentItemHref = $PathTool.calculateLink( $item.href, $relativePath ) ) #set ( $currentItemHref = $currentItemHref.replaceAll( '\\', '/' ) ) @@ -121,12 +121,12 @@ #set ( $currentItemHref = './' ) #end ## -
  • +
  • #link( $currentItemHref $item.name $item.target $item.img $item.position $item.alt $item.border $item.width $item.height ) - > +
  • >
  • #end - $title +
  • $title
  • #end ## #macro ( displayTree $display $item ) @@ -327,27 +327,26 @@ ## #if ( $datePosition.equalsIgnoreCase( $position ) ) #if ( ( $datePosition.equalsIgnoreCase( "right" ) ) || ( $datePosition.equalsIgnoreCase( "bottom" ) ) ) -
    - $prefix $i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateToday -
    + $prefix
  • $i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateToday
  • #if ( $versionPosition.equalsIgnoreCase( $position ) ) -  | $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version} +  
  • |
  • $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}
  • #end + #elseif ( ( $datePosition.equalsIgnoreCase( "navigation-bottom" ) ) || ( $datePosition.equalsIgnoreCase( "navigation-top" ) ) )
    $i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateToday #if ( $versionPosition.equalsIgnoreCase( $position ) ) -  | $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version} +  | $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version} #end
    #elseif ( $datePosition.equalsIgnoreCase("left") ) -
    - $i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateToday + +
  • $i18n.getString( "site-renderer", $locale, "template.lastpublished" ): $dateToday
  • #if ( $versionPosition.equalsIgnoreCase( $position ) ) -  | $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version} +  
  • |
  • $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}
  • #end #if ( $breadcrumbs && $breadcrumbs.size() > 0 ) - | #breadcrumbs( $breadcrumbs ) +
  • |
  • #breadcrumbs( $breadcrumbs "pull-left" ) #end
    #end @@ -355,22 +354,16 @@ #if ( ( $versionPosition.equalsIgnoreCase( "right" ) ) || ( $versionPosition.equalsIgnoreCase( "bottom" ) ) ) $prefix $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version} #elseif ( ( $versionPosition.equalsIgnoreCase( "navigation-bottom" ) ) || ( $versionPosition.equalsIgnoreCase( "navigation-top" ) ) ) -
    - $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version} -
    +
  • $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}
  • #elseif ( $versionPosition.equalsIgnoreCase("left") ) -
    - $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version} +
  • $i18n.getString( "site-renderer", $locale, "template.version" ): ${project.version}
  • #if ( $breadcrumbs && $breadcrumbs.size() > 0 ) - | #breadcrumbs( $breadcrumbs ) + | #breadcrumbs( $breadcrumbs "pull-left") #end -
    #end #elseif ( $position.equalsIgnoreCase( "left" ) ) #if ( $breadcrumbs && $breadcrumbs.size() > 0 ) -
    - #breadcrumbs( $breadcrumbs ) -
    + #breadcrumbs( $breadcrumbs "pull-left") #end #end #end diff --git a/archiva-docs/src/site/site.xml b/archiva-docs/src/site/site.xml index 6f96b2d36..73311053b 100644 --- a/archiva-docs/src/site/site.xml +++ b/archiva-docs/src/site/site.xml @@ -25,8 +25,8 @@ http://archiva.apache.org/ - - + +