summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/VNPage.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-08-08 02:10:40 +0200
committerYorhel <git@yorhel.nl>2015-08-08 02:10:40 +0200
commit6c46c3bd553734944847193a3356176efc3416e7 (patch)
tree235050d0632a687ca6338cf63c4ac16c338f7b08 /lib/VNDB/Handler/VNPage.pm
parent7c3c7ed1ae63299925c6fdab306c57e9ee232f26 (diff)
Add sexual trait toggle to character information
It's not a preference yet and the sexual traits are still visible by default. I'll fix that later.
Diffstat (limited to 'lib/VNDB/Handler/VNPage.pm')
-rw-r--r--lib/VNDB/Handler/VNPage.pm14
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm
index 16904efc..f4b4b6e5 100644
--- a/lib/VNDB/Handler/VNPage.pm
+++ b/lib/VNDB/Handler/VNPage.pm
@@ -898,12 +898,7 @@ sub _chars {
for my $r (@{$self->{char_roles}}) {
next if !@{$rol{$r}};
div class => 'mainbox';
- if(!$first++) {
- my $spoil = $self->authPref('spoilers')||0;
- p id => 'charspoil_sel';
- a href => '#', $spoil == $_ ? (class => 'sel') : (), mt "_spoilset_$_" for (0..2);
- end;
- }
+ $self->charOps(1) if !$first++;
h1 mt "_charrole_$r", scalar @{$rol{$r}};
for my $c (@{$rol{$r}}) {
my $minspoil = 5;
@@ -948,12 +943,7 @@ sub _staff {
my($has_spoilers, $has_notes);
$has_spoilers ||= $_->{spoil}, $has_notes ||= $_->{note} for @{$v->{seiyuu}};
div class => 'mainbox staff cast';
- if($has_spoilers) {
- my $spoil = $self->authPref('spoilers')||0;
- p id => 'charspoil_sel';
- a href => '#', $spoil == $_ ? (class => 'sel') : (), mt "_spoilset_$_" for (0..2);
- end;
- }
+ $self->charOps(0) if $has_spoilers;
h1 mt '_vnpage_cast';
table class => 'stripe';
thead;