diff options
Diffstat (limited to 'lib/VNDB/Util/CommonHTML.pm')
-rw-r--r-- | lib/VNDB/Util/CommonHTML.pm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm index 70fdfde3..6b6725c6 100644 --- a/lib/VNDB/Util/CommonHTML.pm +++ b/lib/VNDB/Util/CommonHTML.pm @@ -402,7 +402,7 @@ sub htmlVoteStats { td colspan => 2, 'Vote graph'; end; end; tfoot; Tr; - td colspan => 2, sprintf '%d votes total, average %.2f%s', $count, $total/$count, + td colspan => 2, sprintf '%d vote%s total, average %.2f%s', $count, $count != 1 ? 's' : '', $total/$count, $type eq 'v' ? ' ('.$self->{votes}[sprintf '%.0f', $total/$count-1].')' : ''; end; end; for (reverse 0..$#$stats) { @@ -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; } |