@matheusbsbs / matheus-bagliano / commits / 7c27801473
Fork 0

gitweb: bugfix: a.list formatting regression

Fix regression introduced by commit 17d07443188909ef5f8b8c24043cb6d9fef51bca. "a.list" being "bold", makes a myriad of things shown by gitweb in bold font-weight, which is a regression from pre-17d07443188909ef5f8b8c24043cb6d9fef51bca behavior. The fix is to add "subject" class and use this class to replace pre-format_subject_html formatting of subject (comment) via using (or not) <b>...</b> element. This should go back to the pre-17d0744318... style. Regression noticed by Luben Tuikov. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Luben Tuikov <ltuikov@yahoo.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Jakub Narebski committed Aug 22, 2006 at 12:02 UTC 7c278014730dc15bf03b8640b1d406c657447092
2 files changed +7 -4
gitweb/gitweb.css
+5 -2
@@ -117,11 +117,14 @@ div.list_head {
117
118 a.list {
119 text-decoration: none;
120 - font-weight: bold;
120 color: #000000;
121 }
122
124 -table.tags a.list {
123 +a.subject {
124 + font-weight: bold;
125 +}
126 +
127 +table.tags a.subject {
128 font-weight: normal;
129 }
130
gitweb/gitweb.perl
+2 -2
@@ -504,11 +504,11 @@ sub format_subject_html {
504 $extra = '' unless defined($extra);
505
506 if (length($short) < length($long)) {
507 - return $cgi->a({-href => $href, -class => "list",
507 + return $cgi->a({-href => $href, -class => "list subject",
508 -title => $long},
509 esc_html($short) . $extra);
510 } else {
511 - return $cgi->a({-href => $href, -class => "list"},
511 + return $cgi->a({-href => $href, -class => "list subject"},
512 esc_html($long) . $extra);
513 }
514 }