diff options
| author | Jakub Narebski <jnareb@gmail.com> | 2006-08-22 12:02:48 +0200 |
|---|---|---|
| committer | Junio C Hamano <junkio@cox.net> | 2006-08-22 15:50:54 -0700 |
| commit | 7c278014730dc15bf03b8640b1d406c657447092 (patch) | |
| tree | c89c054da87a5b0bcbd452cba37203b5c1a62c71 /gitweb/gitweb.perl | |
| parent | gitweb: Use parse_difftree_raw_line in git_difftree_body (diff) | |
| download | git-7c278014730dc15bf03b8640b1d406c657447092.tar.gz git-7c278014730dc15bf03b8640b1d406c657447092.zip | |
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>
Diffstat (limited to 'gitweb/gitweb.perl')
| -rwxr-xr-x | gitweb/gitweb.perl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 31a1824d7a..0e4697731d 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -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); } } |
