From cc2bb01c51c702fdb9fe2d34649f47c737558a61 Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Sun, 9 Jun 2019 19:24:30 +0200 Subject: [PATCH] fix rank display with new jinja --- templates/base.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/base.html b/templates/base.html index cba8daf..94a1193 100644 --- a/templates/base.html +++ b/templates/base.html @@ -21,19 +21,20 @@
{{ columNames }}
{% for player in playerList %} - {% if loop.index % 2 == 0 %} + {% set count = loop.index + start %} + {% if count % 2 == 0 %}
{{ player.getLineHTML(loop.index) }} + class=line-even>{{ player.getLineHTML(count) }}
{% else %}
{{ player.getLineHTML(loop.index) }} + class=line-odd>{{ player.getLineHTML(count) }}
{% endif %} {% endfor %}