summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorubq323 <ubq323>2021-07-18 15:16:26 +0000
committerubq323 <ubq323>2021-07-18 15:16:26 +0000
commit8b022f838f507c1a6fcc67edc97fecdd17423f06 (patch)
tree91569a35508a11792f371e71c53eae21964fd324
parentf86ec8076e53ec3608fbcf64e0b4df18eba0e9e5 (diff)
wrong name for loop counter thing
-rw-r--r--apioforum/templates/common.html2
1 files changed, 1 insertions, 1 deletions
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 #}