gitweb: place links to parent directories in page header
[gitweb.git] / gitweb / gitweb.perl
index 7d36f563e4236ce03acfda403b11f10f4eccf5b1..3ab608c7f9daf7fc4b6ecb6f88fcfcf0fc00abb6 100755 (executable)
@@ -3856,7 +3856,10 @@ sub print_nav_breadcrumbs {
 
        print $cgi->a({-href => esc_url($home_link)}, $home_link_str) . " / ";
        if (defined $project) {
-               print $cgi->a({-href => href(action=>"summary")}, esc_html($project));
+               my @dirname = split '/', $project;
+               my $projectbasename = pop @dirname;
+               print_nav_breadcrumbs_path(@dirname);
+               print $cgi->a({-href => href(action=>"summary")}, esc_html($projectbasename));
                if (defined $action) {
                        my $action_print = $action ;
                        if (defined $opts{-action_extra}) {