diff options
author | Yorhel <git@yorhel.nl> | 2009-01-17 17:06:45 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-01-17 17:06:45 +0100 |
commit | 20f167ed0ae997d217ef3c028088b00975245cd3 (patch) | |
tree | f17f88b2ff00cac63953e1bb00839eabc2008800 /lib | |
parent | 896e6545ffdf955b772c439d1afa4d093da64355 (diff) |
Put vn relations on top on r+ pages
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VNDB/Handler/Releases.pm | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/lib/VNDB/Handler/Releases.pm b/lib/VNDB/Handler/Releases.pm index 38a1fa02..508e792c 100644 --- a/lib/VNDB/Handler/Releases.pm +++ b/lib/VNDB/Handler/Releases.pm @@ -86,7 +86,17 @@ sub _infotable { my $i = 0; Tr ++$i % 2 ? (class => 'odd') : (); - td class => 'key', 'Title'; + td class => 'key', 'Relation'; + td; + for (@{$r->{vn}}) { + a href => "/v$_->{vid}", title => $_->{original}||$_->{title}, shorten $_->{title}, 60; + br if $_ != $r->{vn}[$#{$r->{vn}}]; + } + end; + end; + + Tr ++$i % 2 ? (class => 'odd') : (); + td 'Title'; td $r->{title}; end; @@ -98,16 +108,6 @@ sub _infotable { } Tr ++$i % 2 ? (class => 'odd') : (); - td 'Relation'; - td; - for (@{$r->{vn}}) { - a href => "/v$_->{vid}", title => $_->{original}||$_->{title}, shorten $_->{title}, 60; - br if $_ != $r->{vn}[$#{$r->{vn}}]; - } - end; - end; - - Tr ++$i % 2 ? (class => 'odd') : (); td 'Type'; td; my $type = $self->{release_types}[$r->{type}]; |