summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/tpl/vnpage6
-rw-r--r--lib/ChangeLog3
-rw-r--r--lib/VNDB/VN.pm3
-rw-r--r--lib/global.pl3
-rw-r--r--static/files/icons.pngbin2816 -> 2905 bytes
-rw-r--r--static/files/style.css49
6 files changed, 37 insertions, 27 deletions
diff --git a/data/tpl/vnpage b/data/tpl/vnpage
index 84c00fc2..6ccb8f91 100644
--- a/data/tpl/vnpage
+++ b/data/tpl/vnpage
@@ -81,6 +81,9 @@ if($d{vn}{length} || $d{vn}{alias} || @links || $prod) { ]]
<dt>Length</dt><dd>[[: $VNDB::VNLEN->[$d{vn}{length}][0] ]]- ([[: $VNDB::VNLEN->[$d{vn}{length}][1] ]])</dd>[[ } ]]-
[[ if($d{vn}{alias}) { ]]-
<dt>Aliases</dt><dd>[[: $d{vn}{alias} ]]</dd>[[ } ]]-
+ [[ if(@links > 0) { ]]-
+ <dt>Links</dt><dd>[[= join(', ', map { '<a href="'.sprintf($_->[1],$_->[2]).'">'.$_->[0].'</a>' } @links) ]]</dd>[[ } ]]-
+ <dt>Rating</dt><dd>[[: $d{vn}{c_votes} ]]</dd>
[[ if($prod) { ]]-
<dt>Producers</dt><dd>
[[ for my $l (@lang) { my %l;
@@ -92,9 +95,6 @@ if($d{vn}{length} || $d{vn}{alias} || @links || $prod) { ]]
<acronym class="icons lang -[[= $l ]]" title="[[: $VNDB::LANG->{$l} ]]">&nbsp;</acronym>[[= join(' &amp; ', keys %l) ]]<br />
[[ } } ]]
</dd>[[ } ]]-
- [[ if(@links > 0) { ]]-
- <dt>Links</dt><dd>[[= join(', ', map { '<a href="'.sprintf($_->[1],$_->[2]).'">'.$_->[0].'</a>' } @links) ]]</dd>[[ } ]]-
- <dt>Rating</dt><dd>[[: $d{vn}{c_votes} ]]</dd>
</dl>
[[ } ]]-
diff --git a/lib/ChangeLog b/lib/ChangeLog
index dd909d8d..4f2f5e09 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -11,6 +11,9 @@ TODO:
+ Use AniDB's daily title dump and implement a search feature to add
anime relations without having to visit AniDB.
+1.17 - 2008-05-23
+ - Added PS3 to platforms
+
1.16 - 2008-05-22
- Release dates in the current year or month without a specified day will
be considered as not yet released
diff --git a/lib/VNDB/VN.pm b/lib/VNDB/VN.pm
index 5436f07e..63b5801f 100644
--- a/lib/VNDB/VN.pm
+++ b/lib/VNDB/VN.pm
@@ -95,6 +95,7 @@ sub VNEdit {
{ name => 'relations', required => 0, default => '' },
{ name => 'comm', required => 0, default => '' },
);
+ $frm->{l_cisv} = $b4{l_cisv};
$frm->{img_nsfw} = $frm->{img_nsfw} ? 1 : 0;
$frm->{anime} = join(' ', sort { $a <=> $b } grep /^[0-9]+$/, split(/\s+/, $frm->{anime})); # re-sort
@@ -160,7 +161,7 @@ sub VNEdit {
}
# check for new anime data
- $self->RunCmd('anime check') if $frm->{anime} ne $b4{anime};
+ $self->RunCmd('anime check') if $oid && $frm->{anime} ne $b4{anime} || !$oid && $frm->{anime};
return $self->ResRedirect('/v'.$id.'?rev='.$cid, 'post');
}
diff --git a/lib/global.pl b/lib/global.pl
index a169abc8..b94dd40b 100644
--- a/lib/global.pl
+++ b/lib/global.pl
@@ -3,7 +3,7 @@ package VNDB;
our @DBLOGIN = ( 'dbi:Pg:dbname=vndb', 'vndb', 'passwd' );
our @SHMOPTS = ( -key => 'VNDB', -create => 'yes', -destroy => 'no', -mode => 0666);
our $DEBUG = 1;
-our $VERSION = '1.16';
+our $VERSION = '1.17';
our $PLAT = {
win => 'Windows',
@@ -15,6 +15,7 @@ our $PLAT = {
psp => 'Playstation Portable',
ps1 => 'Playstation 1',
ps2 => 'Playstation 2',
+ ps3 => 'Playstation 3',
drc => 'Dreamcast',
sfc => 'Super Nintendo',
wii => 'Nintendo Wii',
diff --git a/static/files/icons.png b/static/files/icons.png
index f9cad068..6b1762bc 100644
--- a/static/files/icons.png
+++ b/static/files/icons.png
Binary files differ
diff --git a/static/files/style.css b/static/files/style.css
index 980e0861..d76f87ba 100644
--- a/static/files/style.css
+++ b/static/files/style.css
@@ -657,34 +657,39 @@ acronym.icons { cursor: default; }
.icons.ps2 { background-position: 0px -42px; }
.icons.sfc { background-position: 0px -56px; }
.icons.gba { background-position: 0px -70px; }
-.icons.ext { background-position: 0px -84px; }
-.icons.par { background-position: 0px -98px; }
+.icons.ps3 { background-position: 0px -84px; }
+
.icons.dvd { background-position: -16px 0px; }
.icons.mac { background-position: -16px -14px; }
.icons.ps1 { background-position: -16px -28px; }
.icons.psp { background-position: -16px -42px; }
.icons.win { background-position: -16px -56px; }
.icons.wii { background-position: -16px -70px; }
-.icons.tri { background-position: -16px -84px; }
-.icons.com { background-position: -16px -98px; }
-.icons.cs { background-position: -32px 0px; }
-.icons.da { background-position: -32px -11px; }
-.icons.de { background-position: -32px -22px; }
-.icons.en { background-position: -32px -33px; }
-.icons.es { background-position: -32px -44px; }
-.icons.fi { background-position: -32px -55px; }
-.icons.fr { background-position: -32px -66px; }
-.icons.it { background-position: -32px -77px; }
-.icons.ja { background-position: -32px -88px; }
-.icons.ko { background-position: -32px -99px; }
-.icons.nl { background-position: -45px 0px; }
-.icons.no { background-position: -45px -11px; }
-.icons.pl { background-position: -45px -22px; }
-.icons.pt { background-position: -45px -33px; }
-.icons.ru { background-position: -45px -44px; }
-.icons.sv { background-position: -45px -55px; }
-.icons.tr { background-position: -45px -66px; }
-.icons.zh { background-position: -45px -77px; }
+
+.icons.com { background-position: -32px 0px; }
+.icons.par { background-position: -32px -14px; }
+.icons.tri { background-position: -32px -28px; }
+.icons.ext { background-position: -32px -42px; }
+
+.icons.cs { background-position: -48px 0px; }
+.icons.da { background-position: -48px -11px; }
+.icons.de { background-position: -48px -22px; }
+.icons.en { background-position: -48px -33px; }
+.icons.es { background-position: -48px -44px; }
+.icons.fi { background-position: -48px -55px; }
+.icons.fr { background-position: -48px -66px; }
+.icons.it { background-position: -48px -77px; }
+.icons.ja { background-position: -48px -88px; }
+
+.icons.nl { background-position: -61px 0px; }
+.icons.no { background-position: -61px -11px; }
+.icons.pl { background-position: -61px -22px; }
+.icons.pt { background-position: -61px -33px; }
+.icons.ru { background-position: -61px -44px; }
+.icons.sv { background-position: -61px -55px; }
+.icons.tr { background-position: -61px -66px; }
+.icons.zh { background-position: -61px -77px; }
+.icons.ko { background-position: -61px -88px; }
/* tables */