You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2014/01/31 23:53:14 UTC
svn commit: r1563322 - /myfaces/site/cms-site/trunk/lib/view.pm
Author: lu4242
Date: Fri Jan 31 22:53:14 2014
New Revision: 1563322
URL: http://svn.apache.org/r1563322
Log:
test how to fix documentation
Modified:
myfaces/site/cms-site/trunk/lib/view.pm
Modified: myfaces/site/cms-site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/myfaces/site/cms-site/trunk/lib/view.pm?rev=1563322&r1=1563321&r2=1563322&view=diff
==============================================================================
--- myfaces/site/cms-site/trunk/lib/view.pm (original)
+++ myfaces/site/cms-site/trunk/lib/view.pm Fri Jan 31 22:53:14 2014
@@ -359,13 +359,16 @@ sub breadcrumbs {
my @rv;
my $relpath = "";
my $ignoreCount = 0;
+ my $curFile = "";
for (@path) {
- $ignoreCount = $ignoreCount + 1;
+ $curFile = $_;
$relpath .= "$_/";
- if ($ignoreCount > 1) {
+ # Ignore top level
+ if ($ignoreCount > 0) {
$_ ||= "Home";
- push @rv, qq(<a href="$relpath">\u$_</a>);
+ push @rv, qq(<a href="$relpath">\u$_ $curFile</a>);
}
+ $ignoreCount = $ignoreCount + 1;
}
return join " » ", @rv;
}