From 156a362991ac6922f33e61a08f39f31048310183 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sat, 27 Nov 2010 09:51:30 +0100 Subject: Re-added producer role to collapsed view on producer pages And rewrote the expand/collapse JS/CSS code so that the difference between expanded and collapsed view is merely the class of the containing table. This way the JS code doesn't have to pass through the table rows and is thus noticeably faster for larger tables (i.e. /p65). --- lib/VNDB/Handler/Producers.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/VNDB/Handler/Producers.pm') diff --git a/lib/VNDB/Handler/Producers.pm b/lib/VNDB/Handler/Producers.pm index f743b4ca..6e11e829 100644 --- a/lib/VNDB/Handler/Producers.pm +++ b/lib/VNDB/Handler/Producers.pm @@ -153,6 +153,10 @@ sub _releases { td colspan => 6; i; lit $self->{l10n}->datestr($vn{$v->{vid}}[0]{released}); end; a href => "/v$v->{vid}", title => $v->{original}, $v->{title}; + span '('.join(', ', + (grep($_->{developer}, @{$vn{$v->{vid}}}) ? mt '_prodpage_dev' : ()), + (grep($_->{publisher}, @{$vn{$v->{vid}}}) ? mt '_prodpage_pub' : ()) + ).')'; end; end; for my $rel (@{$vn{$v->{vid}}}) { -- cgit v1.2.3