From 44c25fb16c63191a6f7aa8553e84017a161e3356 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 11 Oct 2011 14:00:24 +0000 Subject: fix breadcrumbs when using position right git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1181787 13f79535-47bb-0310-9956-ffa450edef68 --- archiva-docs/src/maven-site.vm | 39 ++++++++++++++++----------------------- archiva-docs/src/site/site.xml | 4 ++-- 2 files changed, 18 insertions(+), 25 deletions(-) (limited to 'archiva-docs') 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/ - - + + -- cgit v1.2.3