From: Junio C Hamano Date: Tue, 17 Sep 2013 18:42:27 +0000 (-0700) Subject: Merge branch 'ab/gitweb-author-initials' X-Git-Tag: v1.8.5-rc0~128 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/e8717b67fec7ec7c1f8742bb7b75900ab60bbc1a?ds=inline;hp=-c Merge branch 'ab/gitweb-author-initials' * ab/gitweb-author-initials: gitweb: Fix the author initials in blame for non-ASCII names --- e8717b67fec7ec7c1f8742bb7b75900ab60bbc1a diff --combined gitweb/gitweb.perl index b5d156f7d0,8d2ead1c03..68c77f6f8f --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@@ -85,9 -85,6 +85,9 @@@ our $project_maxdepth = "++GITWEB_PROJE # string of the home link on top of all pages our $home_link_str = "++GITWEB_HOME_LINK_STR++"; +# extra breadcrumbs preceding the home link +our @extra_breadcrumbs = (); + # name of your site or organization to appear in page titles # replace this with something more descriptive for clearer bookmarks our $site_name = "++GITWEB_SITENAME++" @@@ -3985,9 -3982,7 +3985,9 @@@ sub print_nav_breadcrumbs_path sub print_nav_breadcrumbs { my %opts = @_; - print $cgi->a({-href => esc_url($home_link)}, $home_link_str) . " / "; + for my $crumb (@extra_breadcrumbs, [ $home_link_str => $home_link ]) { + print $cgi->a({-href => esc_url($crumb->[1])}, $crumb->[0]) . " / "; + } if (defined $project) { my @dirname = split '/', $project; my $projectbasename = pop @dirname; @@@ -4035,8 -4030,8 +4035,8 @@@ sub print_search_form $cgi->input({-name=>"h", -value=>$search_hash, -type=>"hidden"}) . "\n" . $cgi->popup_menu(-name => 'st', -default => 'commit', -values => ['commit', 'grep', 'author', 'committer', 'pickaxe']) . - $cgi->sup($cgi->a({-href => href(action=>"search_help")}, "?")) . - " search:\n", + " " . $cgi->a({-href => href(action=>"search_help"), + -title => "search help" }, "?") . " search:\n", $cgi->textfield(-name => "s", -value => $searchtext, -override => 1) . "\n" . "" . $cgi->checkbox(-name => 'sr', -value => 1, -label => 're', @@@ -6468,7 -6463,7 +6468,7 @@@ sub git_summary print "
 
\n"; print "\n" . "\n"; - unless ($omit_owner) { + if ($owner and not $omit_owner) { print "\n"; } if (defined $cd{'rfc2822'}) { @@@ -6631,6 -6626,7 +6631,7 @@@ sub git_blame_common $hash_base, '--', $file_name or die_error(500, "Open git-blame --porcelain failed"); } + binmode $fd, ':utf8'; # incremental blame data returns early if ($format eq 'data') {
description" . esc_html($descr) . "
owner" . esc_html($owner) . "