diff options
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | data/global.pl | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | data/style.css | 5 | ||||
-rw-r--r--[-rwxr-xr-x] | lib/VNDB/Handler/VNPage.pm | 9 |
4 files changed, 11 insertions, 5 deletions
@@ -5,6 +5,8 @@ /data/icons/icons.css /static/f/js/ /static/f/icons.png +/static/f/vndb.js +/static/f/vndb.js.gz /static/feeds/ /static/s/*/style.css /static/s/*/style.css.gz diff --git a/data/global.pl b/data/global.pl index 0c1ba6d6..0c1ba6d6 100755..100644 --- a/data/global.pl +++ b/data/global.pl diff --git a/data/style.css b/data/style.css index 1c956ba7..5b4e3f55 100755..100644 --- a/data/style.css +++ b/data/style.css @@ -366,6 +366,7 @@ div#vntags { margin: 15px 30px 0 30px; border-top: 1px solid .releases td.tc1 { padding-left: 30px; width: 80px; } .releases td.tc2 { text-align: center; width: 50px; } .releases td.tc3 { text-align: right; padding: 0; width: 90px; } +.releases td.tc_icons { padding: 0 4px } .releases td.tc5 { width: 70px; } .releases td.tc5 a { color: $maintext$; border: 0; } .releases td.tc6 { text-align: right; width: 25px; padding: 0; } @@ -913,8 +914,8 @@ a .icons { cursor: pointer } $iconcss$ -.release_icons_container { width: 18px; height: 18px; float: right; margin-left: 4px; } -.release_icons { width: 18px; height: 18px; } +.release_icons_container { width: 16px; height: 16px; float: right; margin-left: 4px; } +.release_icons { width: 16px; height: 16px; } .release_icons.not_voiced, .story_not_animated, .ero_not_animated { } .release_icons.ero_voiced, .story_simple_animated, .ero_simple_animated { filter: hue-rotate(30deg); } .release_icons.partially_voiced, .story_some_fully_animated, .ero_some_fully_animated { filter: invert(100%) hue-rotate(240deg) } diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm index b1a5ec38..9e3c0e98 100755..100644 --- a/lib/VNDB/Handler/VNPage.pm +++ b/lib/VNDB/Handler/VNPage.pm @@ -783,7 +783,7 @@ sub _releases { table; for my $l (@lang) { Tr class => 'lang'; - td colspan => 6; + td colspan => 7; cssicon "lang $l", $self->{languages}{$l}; txt $self->{languages}{$l}; end; @@ -1007,7 +1007,7 @@ sub add_release_info_icons { my $ero_anim_code = $releases_data->{ani_ero}; if($ero_anim_code > 0) { - release_info_icon("release_icons ".$self->{icons_ero_animated}[$ero_anim_code], "Story: $self->{animated}[$ero_anim_code]", "ero_animated.svg"); + release_info_icon("release_icons ".$self->{icons_ero_animated}[$ero_anim_code], "Ero: $self->{animated}[$ero_anim_code]", "ero_animated.svg"); } # Cost column @@ -1027,7 +1027,7 @@ sub add_release_info_icons { } # Media column - if (length($releases_data->{media}) > 0 and length($releases_data->{media}[0]->{medium}) > 0) { + if (@{$releases_data->{media}}) { my $first_medium = $releases_data->{media}[0]->{medium}; my $media_type = $first_medium eq "in" ? "download" : $first_medium eq "cd" || $first_medium eq "dvd" || $first_medium eq "gdr" || $first_medium eq "blr" ? 'disk' : 'cartridge'; @@ -1036,6 +1036,9 @@ sub add_release_info_icons { } # Notes column + # TODO: The notes text should to through a bb2html() to strip the tags. But + # showing HTML inside a 'title' attribute won't work, and bb2html() doesn't + # have a plain text output option. if (defined $releases_data->{notes} and length $releases_data->{notes}) { release_info_icon "release_icons notes", $releases_data->{notes}, "notes.svg"; } |