From: Jakub Narebski Date: Tue, 1 Dec 2009 16:54:26 +0000 (+0100) Subject: gitweb: Add link to other blame implementation in blame views X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/5e716f7b73fe2e0a041ab73a637435c9a240d4bfc3993383923eaf8067bdad22 gitweb: Add link to other blame implementation in blame views Add link to 'blame_incremental' action (which requires JavaScript) in 'blame' view, and add link to 'blame' action in 'blame_incremental' view. Signed-off-by: Jakub Narebski Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index 2179bc4..0f6336e 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -5007,6 +5007,17 @@ sub git_blame_common { my $formats_nav = $cgi->a({-href => href(action=>"blob", -replay=>1)}, "blob") . + " | "; + if ($format eq 'incremental') { + $formats_nav .= + $cgi->a({-href => href(action=>"blame", javascript=>0, -replay=>1)}, + "blame") . " (non-incremental)"; + } else { + $formats_nav .= + $cgi->a({-href => href(action=>"blame_incremental", -replay=>1)}, + "blame") . " (incremental)"; + } + $formats_nav .= " | " . $cgi->a({-href => href(action=>"history", -replay=>1)}, "history") .