gitweb: allow action specialization in page header
[gitweb.git] / gitweb / gitweb.perl
index 7cd50d4b8255a09f32b95e41c240ca49d2568ec3..c3b89666c5a4fe89665ba48379ac6c363c26c11c 100755 (executable)
@@ -3526,7 +3526,15 @@ sub git_header_html {
        if (defined $project) {
                print $cgi->a({-href => href(action=>"summary")}, esc_html($project));
                if (defined $action) {
-                       print " / $action";
+                       my $action_print = $action ;
+                       if (defined $opts{-action_extra}) {
+                               $action_print = $cgi->a({-href => href(action=>$action)},
+                                       $action);
+                       }
+                       print " / $action_print";
+               }
+               if (defined $opts{-action_extra}) {
+                       print " / $opts{-action_extra}";
                }
                print "\n";
        }