]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: bugfix: a.list formatting regression
authorJakub Narebski <redacted>
Tue, 22 Aug 2006 10:02:48 +0000 (12:02 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:10 +0000 (00:07 -0400)
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 <redacted>
Signed-off-by: Luben Tuikov <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.css
gitweb.perl

index cb0a9b1970f613263f4706b8f981f7d820728dec84eab7b948bbfe1b1a14557d..35ad02b382c3baf59a2f045f3f68e05aa163c6b0f2c3982723c21e43fe09f48b 100644 (file)
@@ -117,11 +117,14 @@ div.list_head {
 
 a.list {
        text-decoration: none;
-       font-weight: bold;
        color: #000000;
 }
 
-table.tags a.list {
+a.subject {
+       font-weight: bold;
+}
+
+table.tags a.subject {
        font-weight: normal;
 }
 
index 199d26782c82d3f3ab5e84eb92e4129d72c020221e15630da7def8003d3bb8db..032d3cdcd6b50204ae18e6563df3051c72b9475a3b3389bc822903292cca750e 100755 (executable)
@@ -504,11 +504,11 @@ sub format_subject_html {
        $extra = '' unless defined($extra);
 
        if (length($short) < length($long)) {
-               return $cgi->a({-href => $href, -class => "list",
+               return $cgi->a({-href => $href, -class => "list subject",
                                -title => $long},
                       esc_html($short) . $extra);
        } else {
-               return $cgi->a({-href => $href, -class => "list"},
+               return $cgi->a({-href => $href, -class => "list subject"},
                       esc_html($long)  . $extra);
        }
 }
This page took 0.210604 seconds and 4 git commands to generate.