diff options
author | Yorhel <git@yorhel.nl> | 2015-08-08 04:41:37 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2015-08-08 04:41:37 +0200 |
commit | 8447ba51583f6ac061688fd17ca78e3b77c6d76e (patch) | |
tree | 95d2723eb51ea246ff914e6645869e691e058aa8 /lib/VNDB/Handler/Chars.pm | |
parent | 1e7b29358b3dbc5a7869d91bc61c6a62431b3e8e (diff) |
Char page: Dynamically show/hide trait groups depending on visible traits
Diffstat (limited to 'lib/VNDB/Handler/Chars.pm')
-rw-r--r-- | lib/VNDB/Handler/Chars.pm | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/VNDB/Handler/Chars.pm b/lib/VNDB/Handler/Chars.pm index 1f547c6e..fbafc2fe 100644 --- a/lib/VNDB/Handler/Chars.pm +++ b/lib/VNDB/Handler/Chars.pm @@ -167,13 +167,7 @@ sub charTable { push @{$groups{ $g }}, $_ } for my $g (@groups) { - my $minspoil = 5; - my $fullsex = 1; - for(@{$groups{$g}}) { - $minspoil = $minspoil > $_->{spoil} ? $_->{spoil} : $minspoil; - $fullsex = 0 if !$_->{sexual}; - } - Tr class => charspoil($minspoil).($fullsex ? ' sexual hidden' : ''); + Tr class => 'traitrow'; td class => 'key'; a href => '/i'.($groups{$g}[0]{group}||$groups{$g}[0]{tid}), $groups{$g}[0]{groupname} || $groups{$g}[0]{name}; end; td; for (0..$#{$groups{$g}}) { |