diff options
author | Jakub Narebski <jnareb@gmail.com> | 2006-08-25 21:05:45 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-08-25 19:41:15 -0700 |
commit | c2c8ff24380efe0149815fc014445e31f81c3403 (patch) | |
tree | c3387c6b9ec466ec851025e33df5764eb3bd0c15 | |
parent | gitweb: Add invisible hyperlink to from-file/to-file diff header (diff) | |
download | tgif-c2c8ff24380efe0149815fc014445e31f81c3403.tar.xz |
gitweb: Always display link to blobdiff_plain in git_blobdiff
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-x | gitweb/gitweb.perl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 29953429ee..e631188ee1 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -2790,18 +2790,18 @@ sub git_commit { sub git_blobdiff { mkdir($git_temp, 0700); git_header_html(); + my $formats_nav = + $cgi->a({-href => href(action=>"blobdiff_plain", + hash=>$hash, hash_parent=>$hash_parent, + hash_base=>$hash_base, hash_parent_base=>$hash_parent_base, + file_name=>$file_name, file_parent=>$file_parent)}, + "plain"); if (defined $hash_base && (my %co = parse_commit($hash_base))) { - my $formats_nav = - $cgi->a({-href => href(action=>"blobdiff_plain", - hash=>$hash, hash_parent=>$hash_parent, - hash_base=>$hash_base, hash_parent_base=>$hash_parent_base, - file_name=>$file_name, file_parent=>$file_parent)}, - "plain"); git_print_page_nav('','', $hash_base,$co{'tree'},$hash_base, $formats_nav); git_print_header_div('commit', esc_html($co{'title'}), $hash_base); } else { print <<HTML; -<div class="page_nav"><br/><br/></div> +<div class="page_nav"><br/>$formats_nav<br/></div> <div class="title">$hash vs $hash_parent</div> HTML } |