diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | data/style.css | 10 | ||||
-rw-r--r-- | lib/VNDB/Handler/Discussions.pm | 25 |
3 files changed, 17 insertions, 19 deletions
@@ -13,6 +13,7 @@ - Added image dimensions to screenshot thumbail <img> tags - Prefix all cookies with a configurable cookie_prefix - Automatically read L10N keys from script.js + - Compressed the thread listing into one row per thread (instead of two) - Bugfix: only redirect VN search to VN page if page=1 - Bugfix: remove duplicate votes when merging tags (fixes a 500) - Bugfix: Multi::Anime: don't crash when anidb returns an invalid or empty year diff --git a/data/style.css b/data/style.css index ed41fb15..6427e615 100644 --- a/data/style.css +++ b/data/style.css @@ -548,12 +548,12 @@ div.mainbox.discussions td.tc4 { div.mainbox.discussions a.locked { text-decoration: line-through; } -div.mainbox.discussions td.boards { - padding-top: 0; - padding-left: 60px; +div.mainbox.discussions b.boards { + padding-left: 10px; + font-weight: normal; } -div.mainbox.discussions td.boards a { - color: $grayedout$!important +div.mainbox.discussions b.boards a { + color: $grayedout$!important; } div.discussions td.tc2 { width: 50px; } div.discussions td.tc3 { width: 90px; } diff --git a/lib/VNDB/Handler/Discussions.pm b/lib/VNDB/Handler/Discussions.pm index c8431c2c..33d20fc9 100644 --- a/lib/VNDB/Handler/Discussions.pm +++ b/lib/VNDB/Handler/Discussions.pm @@ -374,6 +374,17 @@ sub _threadlist { Tr $n % 2 ? ( class => 'odd' ) : (); td class => 'tc1'; a $o->{locked} ? ( class => 'locked' ) : (), href => "/t$o->{id}", shorten $o->{title}, 50; + b class => 'boards'; + my $i = 1; + for(sort { $a->{type}.$a->{iid} cmp $b->{type}.$b->{iid} } @{$o->{boards}}) { + last if $i++ > 4; + txt ', ' if $i > 2; + a href => "/t/$_->{type}".($_->{iid}||''), + title => $_->{original}||mt("_dboard_$_->{type}"), + shorten $_->{title}||mt("_dboard_$_->{type}"), 30; + } + txt ', ...' if @{$o->{boards}} > 4; + end; end; td class => 'tc2', $o->{count}-1; td class => 'tc3'; @@ -387,20 +398,6 @@ sub _threadlist { end; end; end; - Tr $n % 2 ? ( class => 'odd' ) : (); - td colspan => 4, class => 'boards'; - txt ' > '; - my $i = 1; - for(sort { $a->{type}.$a->{iid} cmp $b->{type}.$b->{iid} } @{$o->{boards}}) { - last if $i++ > 5; - txt ', ' if $i > 2; - a href => "/t/$_->{type}".($_->{iid}||''), - title => $_->{original}||mt("_dboard_$_->{type}"), - shorten $_->{title}||mt("_dboard_$_->{type}"), 30; - } - txt ', ...' if @{$o->{boards}} > 5; - end; - end; } ); } |