From bab3dafafe324389c932554de3051e7f38f087c5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 8 Mar 2015 18:06:46 +0100 Subject: toplist: background bargraphs for percentages --- templates/toplist.html.ep | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'templates/toplist.html.ep') diff --git a/templates/toplist.html.ep b/templates/toplist.html.ep index 2784386..daead42 100644 --- a/templates/toplist.html.ep +++ b/templates/toplist.html.ep @@ -3,8 +3,13 @@
+% my $max = stash('toplist')->[0][2]; % for my $entry (@{ stash('toplist') // [] }) { - +% my ($desc, $percent, $raw) = @{$entry}; + + + + % }
MeldungAnteilAnzahl
<%= $entry->[0] %><%= $entry->[1] %><%= $entry->[2] %>
 
<%= $desc %>
<%= $percent %><%= $raw %>
-- cgit v1.2.3