summaryrefslogtreecommitdiff
path: root/lib/VNDB/Util/CommonHTML.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-01-10 10:57:14 +0100
committerYorhel <git@yorhel.nl>2009-01-10 10:57:14 +0100
commit614d693c4995a0de58379ce8c0780454b5f6db61 (patch)
treedabff0c265e48ef824c67b4dfd3d6e0e2b500251 /lib/VNDB/Util/CommonHTML.pm
parent08b660429d294d5347cb853de78bc285d1cd2912 (diff)
Popularity indicator on VN pages
Diffstat (limited to 'lib/VNDB/Util/CommonHTML.pm')
-rw-r--r--lib/VNDB/Util/CommonHTML.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm
index 70fdfde3..1da285f9 100644
--- a/lib/VNDB/Util/CommonHTML.pm
+++ b/lib/VNDB/Util/CommonHTML.pm
@@ -443,7 +443,14 @@ sub htmlVoteStats {
}
end;
}
+
clearfloat;
+ if($type eq 'v') {
+ div;
+ h3 'Popularity';
+ p sprintf 'Ranked #%d out of %d with a score of %.2f.', $obj->{ranking}, $self->{stats}{vn}, $obj->{c_popularity}*100;
+ end;
+ }
end;
}