summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Producers.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-11-27 09:51:30 +0100
committerYorhel <git@yorhel.nl>2010-11-27 09:51:30 +0100
commit156a362991ac6922f33e61a08f39f31048310183 (patch)
tree2e38eba4ddfe66c22b72fc3c325db532b78913b6 /lib/VNDB/Handler/Producers.pm
parentfabd5720d5157754406ea5b69e900db632ed035e (diff)
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).
Diffstat (limited to 'lib/VNDB/Handler/Producers.pm')
-rw-r--r--lib/VNDB/Handler/Producers.pm4
1 files changed, 4 insertions, 0 deletions
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}}}) {