]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: Use light/dark for class names also in 'blame' view
[Gitweb] / gitweb.perl
index bf75e53f21c870017817838706a7e63079c3cd44298400f4e6cfe6053a966bd8..5b78db5709e4eda8d794ffcc937216a2745476167013545774c23a88ed785a31 100755 (executable)
@@ -4802,7 +4802,7 @@ sub git_blame {
        git_print_page_path($file_name, $ftype, $hash_base);
 
        # page body
        git_print_page_path($file_name, $ftype, $hash_base);
 
        # page body
-       my @rev_color = qw(light2 dark2);
+       my @rev_color = qw(light dark);
        my $num_colors = scalar(@rev_color);
        my $current_color = 0;
        my %metainfo = ();
        my $num_colors = scalar(@rev_color);
        my $current_color = 0;
        my %metainfo = ();
@@ -4856,6 +4856,14 @@ HTML
                                                     hash=>$full_rev,
                                                     file_name=>$file_name)},
                                      esc_html($short_rev));
                                                     hash=>$full_rev,
                                                     file_name=>$file_name)},
                                      esc_html($short_rev));
+                       if ($group_size >= 2) {
+                               my @author_initials = ($author =~ /\b([[:upper:]])\B/g);
+                               if (@author_initials) {
+                                       print "<br />" .
+                                             esc_html(join('', @author_initials));
+                                       #           or join('.', ...)
+                               }
+                       }
                        print "</td>\n";
                }
                # 'previous' <sha1 of parent commit> <filename at commit>
                        print "</td>\n";
                }
                # 'previous' <sha1 of parent commit> <filename at commit>
This page took 0.326233 seconds and 4 git commands to generate.