]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: show active project_filter in project_list page header
[Gitweb] / gitweb.perl
index 514f26354fb21f6dd986ee9e71082fa15fc5938ffb87c31d5c64e244be60744d..c242588ce5b89870ed5addf6f9f26b3eab6a46c134fc496e440782c0dc0a23e7 100755 (executable)
@@ -3842,6 +3842,18 @@ sub print_header_links {
        }
 }
 
+sub print_nav_breadcrumbs_path {
+       my $dirprefix = undef;
+       while (my $part = shift) {
+               $dirprefix .= "/" if defined $dirprefix;
+               $dirprefix .= $part;
+               print $cgi->a({-href => href(project => undef,
+                                            project_filter => $dirprefix,
+                                            action => "project_list")},
+                             esc_html($part)) . " / ";
+       }
+}
+
 sub print_nav_breadcrumbs {
        my %opts = @_;
 
@@ -3860,6 +3872,8 @@ sub print_nav_breadcrumbs {
                        print " / $opts{-action_extra}";
                }
                print "\n";
+       } elsif (defined $project_filter) {
+               print_nav_breadcrumbs_path(split '/', $project_filter);
        }
 }
 
This page took 0.211925 seconds and 4 git commands to generate.