From 4f1dcd6f41655949357aedd5346d3103480f9c8d Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Tue, 12 Apr 2022 18:04:57 +0300 Subject: [PATCH] fix: Don't make a for each row (#3808) Fixes #3805. --- ietf/templates/stats/review_stats.html | 35 ++++++++++---------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/ietf/templates/stats/review_stats.html b/ietf/templates/stats/review_stats.html index 223b09f11..41564ead7 100644 --- a/ietf/templates/stats/review_stats.html +++ b/ietf/templates/stats/review_stats.html @@ -174,11 +174,8 @@ {% for row in data %} - {% if forloop.revcounter != 1 %}{% endif %} - {% if forloop.last %} - {% if forloop.revcounter != 1 %}{% endif %} - - {% endif %} + {% if forloop.first %}{% endif %} + {% if forloop.last %}{% endif %} {{ row.obj }} {{ row.open_in_time }} @@ -196,8 +193,8 @@ {% endif %} - {% endfor %} - + {% if forloop.last %}{% endif %} + {% endfor %} {% elif stats_type == "results" %}

@@ -221,11 +218,8 @@ {% for row in data %} - {% if forloop.revcounter != 1 %}{% endif %} - {% if forloop.last %} - {% if forloop.revcounter != 1 %}{% endif %} - - {% endif %} + {% if forloop.first %}{% endif %} + {% if forloop.last %}{% endif %} {{ row.obj }} @@ -236,8 +230,8 @@ {% endfor %} - {% endfor %} - + {% if forloop.last %}{% endif %} + {% endfor %} {% elif stats_type == "states" %}

@@ -261,11 +255,8 @@ {% for row in data %} - {% if forloop.revcounter != 1 %}{% endif %} - {% if forloop.last %} - {% if forloop.revcounter != 1 %}{% endif %} - - {% endif %} + {% if forloop.first %}{% endif %} + {% if forloop.last %}{% endif %} {{ row.obj }} @@ -276,8 +267,8 @@ {% endfor %} - {% endfor %} - + {% if forloop.last %}{% endif %} + {% endfor %} {% elif stats_type == "time" and selected_teams %}

@@ -347,4 +338,4 @@ href="{{ t.reviewer_stats_url }}"> {% endif %} - {% endblock %} \ No newline at end of file + {% endblock %}