From ba964498725123e96a2a39841bd1228e1f9f3ce4 Mon Sep 17 00:00:00 2001
From: Tim van Dijen <tvdijen@gmail.com>
Date: Thu, 23 Aug 2018 14:29:25 +0200
Subject: [PATCH] statistics: fix alternating row-style

---
 modules/statistics/templates/statistics.twig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/statistics/templates/statistics.twig b/modules/statistics/templates/statistics.twig
index 202a964ec..576a572d2 100644
--- a/modules/statistics/templates/statistics.twig
+++ b/modules/statistics/templates/statistics.twig
@@ -193,10 +193,9 @@
                     <th>{{ keyName }}</th>
                     {% endfor %}
                 </tr>
-                {% set i = 0 %}
                 {% for slot, dd in debugdata %}
 
-                {% if i % 2 == 0 %}
+                {% if loop.index0 % 2 == 0 %}
                     {% set class = 'even' %}
                 {% else %}
                     {% set class = 'odd' %}
-- 
GitLab