@matheusbsbs / matheus-bagliano / commits / 4a24bfc220
Fork 0

gitweb: Move 'lineno' id from link to row element in git_blame

Move l<line number> ID from <a> link element inside table row (inside cell element for column with line numbers), to encompassing <tr> table row element. It was done to make it easier to manipulate result HTML with DOM, and to be able write 'blame_incremental' view with the same, or nearly the same result. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Acked-by: Luben Tuikov <ltuikov@yahoo.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jakub Narebski committed Dec 9, 2008 at 23:46 UTC 4a24bfc22081a6c2771b62d464222f81c470192c
1 file changed +1 -2
gitweb/gitweb.perl
+1 -2
@@ -4645,7 +4645,7 @@ HTML
4645 if ($group_size) {
4646 $current_color = ++$current_color % $num_colors;
4647 }
4648 - print "<tr class=\"$rev_color[$current_color]\">\n";
4648 + print "<tr id=\"l$lineno\" class=\"$rev_color[$current_color]\">\n";
4649 if ($group_size) {
4650 print "<td class=\"sha1\"";
4651 print " title=\"". esc_html($author) . ", $date\"";
@@ -4667,7 +4667,6 @@ HTML
4667 hash_base => $parent_commit);
4668 print "<td class=\"linenr\">";
4669 print $cgi->a({ -href => "$blamed#l$orig_lineno",
4670 - -id => "l$lineno",
4670 -class => "linenr" },
4671 esc_html($lineno));
4672 print "</td>";