From 8b022f838f507c1a6fcc67edc97fecdd17423f06 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sun, 18 Jul 2021 15:16:26 +0000 Subject: wrong name for loop counter thing --- apioforum/templates/common.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apioforum/templates/common.html b/apioforum/templates/common.html index 286bec8..dfbd934 100644 --- a/apioforum/templates/common.html +++ b/apioforum/templates/common.html @@ -87,7 +87,7 @@ {% else %} {% for opt in poll.options %} {% set opt_count = opt.num or 0 %} - {% set colour = (loop.count|string + opt.text)|gen_colour %} + {% set colour = (loop.index|string + opt.text)|gen_colour %} {% if opt_count != 0 %} {% set percentage = 100*(opt_count/total_votes) %} {# todo: do this in css somehow #} -- cgit v1.2.3