summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2018-10-01 19:21:34 +0200
committerYorhel <git@yorhel.nl>2018-10-01 19:21:36 +0200
commit815f9b1496c75026c9e3ea57bac2f5d5348085ba (patch)
tree8e2453aec78c5e73f747afd5da1814adf96de6c6 /lib
parent4e3081f530526601d82fbe792ea4c0f9bc9a9c9a (diff)
Lower the average vote requirement for tag spoilers a bit
https://vndb.org/t950.512
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/Handler/VNPage.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm
index 82aa9175..565d73ce 100644
--- a/lib/VNDB/Handler/VNPage.pm
+++ b/lib/VNDB/Handler/VNPage.pm
@@ -464,7 +464,8 @@ sub page {
end;
div id => 'vntags';
for (@$t) {
- span class => sprintf 'tagspl%.0f cat_%s %s', $_->{spoiler}, $_->{cat}, $_->{spoiler} > 0 ? 'hidden' : '';
+ my $spoil = $_->{spoiler} > 1.3 ? 2 : $_->{spoiler} > 0.4 ? 1 : 0;
+ span class => sprintf 'tagspl%d cat_%s %s', $spoil, $_->{cat}, $spoil > 0 ? 'hidden' : '';
a href => "/g$_->{id}", style => sprintf('font-size: %dpx', $_->{rating}*3.5+6), $_->{name};
b class => 'grayedout', sprintf ' %.1f', $_->{rating};
end;