summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Producers.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-11-11 18:15:56 +0100
committerYorhel <git@yorhel.nl>2010-11-11 18:15:56 +0100
commit16fe685a3f89faa61716e5b23d0a9b2fdd30fe1f (patch)
treede7e0c395de56278a9b6bb1ff5b01a292381f56f /lib/VNDB/Handler/Producers.pm
parent2a7236184180f24169d454396b482d923beb21b5 (diff)
Producer release listing: added dev/pub info and expand/collapse link
It's an awesome feature now. :-)
Diffstat (limited to 'lib/VNDB/Handler/Producers.pm')
-rw-r--r--lib/VNDB/Handler/Producers.pm14
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/VNDB/Handler/Producers.pm b/lib/VNDB/Handler/Producers.pm
index 12485629..2931e25f 100644
--- a/lib/VNDB/Handler/Producers.pm
+++ b/lib/VNDB/Handler/Producers.pm
@@ -129,7 +129,8 @@ sub _releases {
# prodpage_(dev|pub)
my $r = $self->dbReleaseGet(pid => $p->{id}, results => 999, what => 'vn platforms');
- div class => 'mainbox prodrel';
+ div class => 'mainbox';
+ a href => '#', id => 'expandprodrel', mt '_js_collapse';
h1 mt '_prodpage_rel';
if(!@$r) {
p mt '_prodpage_norel';
@@ -146,15 +147,16 @@ sub _releases {
}
}
- table;
+ table id => 'prodrel';
for my $v (@vn) {
Tr class => 'vn';
- td colspan => 5;
+ td colspan => 6;
+ i; lit $self->{l10n}->datestr($vn{$v->{vid}}[0]{released}); end;
a href => "/v$v->{vid}", title => $v->{original}, $v->{title};
end;
end;
for my $rel (@{$vn{$v->{vid}}}) {
- Tr;
+ Tr class => 'rel';
td class => 'tc1'; lit $self->{l10n}->datestr($rel->{released}); end;
td class => 'tc2', !defined($rel->{minage}) ? '' : minage $rel->{minage};
td class => 'tc3';
@@ -169,7 +171,9 @@ sub _releases {
a href => "/r$rel->{id}", title => $rel->{original}||$rel->{title}, $rel->{title};
b class => 'grayedout', ' '.mt '_vnpage_rel_patch' if $rel->{patch};
end;
- td class => 'tc5';
+ td class => 'tc5', join ', ',
+ ($rel->{developer} ? mt '_prodpage_dev' : ()), ($rel->{publisher} ? mt '_prodpage_pub' : ());
+ td class => 'tc6';
if($rel->{website}) {
a href => $rel->{website}, rel => 'nofollow';
cssicon 'ext', mt '_vnpage_rel_extlink';