--- loncom/interface/lonhtmlcommon.pm 2006/06/01 19:30:49 1.131 +++ loncom/interface/lonhtmlcommon.pm 2006/06/13 14:42:24 1.132 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.131 2006/06/01 19:30:49 albertel Exp $ +# $Id: lonhtmlcommon.pm,v 1.132 2006/06/13 14:42:24 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -948,7 +948,7 @@ sub r_print { # ------------------------------------------------------- Puts directory header sub crumbs { - my ($uri,$target,$prefix,$form,$size,$noformat)=@_; + my ($uri,$target,$prefix,$form,$size,$noformat,$skiplast)=@_; if (! defined($size)) { $size = '+2'; } @@ -964,7 +964,14 @@ sub crumbs { foreach my $dir (split('/',$uri)) { if (! $dir) { next; } $path .= $dir; - unless ($path eq $uri) { $path.='/'; } + if ($path eq $uri) { + if ($skiplast) { + $output.=$dir; + last; + } + } else { + $path.='/'; + } my $linkpath = &Apache::loncommon::escape_single($path); if ($form) { $linkpath=