Skip to content

Commit 87e573f

Browse files
jnarebgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e627e50 commit 87e573f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

gitweb/gitweb.perl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4883,6 +4883,17 @@ sub git_blame_common {
48834883
my $formats_nav =
48844884
$cgi->a({-href => href(action=>"blob", -replay=>1)},
48854885
"blob") .
4886+
" | ";
4887+
if ($format eq 'incremental') {
4888+
$formats_nav .=
4889+
$cgi->a({-href => href(action=>"blame", javascript=>0, -replay=>1)},
4890+
"blame") . " (non-incremental)";
4891+
} else {
4892+
$formats_nav .=
4893+
$cgi->a({-href => href(action=>"blame_incremental", -replay=>1)},
4894+
"blame") . " (incremental)";
4895+
}
4896+
$formats_nav .=
48864897
" | " .
48874898
$cgi->a({-href => href(action=>"history", -replay=>1)},
48884899
"history") .

0 commit comments

Comments
 (0)