summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e627e50)
raw | patch | inline | side by side (parent: e627e50)
author | Jakub Narebski <jnareb@gmail.com> | |
Tue, 1 Dec 2009 16:54:26 +0000 (17:54 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 1 Dec 2009 19:25:21 +0000 (11:25 -0800) |
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 <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
'blame' view, and add link to 'blame' action in 'blame_incremental'
view.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl | patch | blob | history |
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 3368f2af7cda4965bbee68860ab9cd8daa942ec8..49402dc2566abe0bf1ffd2ba3744a486eb99ebd0 100755 (executable)
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
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") .