From 403938e1912f9fe752427b8180840cb001d4ada5 Mon Sep 17 00:00:00 2001 From: Taka Date: Thu, 30 Apr 2020 04:55:14 +0000 Subject: [PATCH] Tweaked the "grid" extras template to not generate so many blank lines. --- .../webapp/data/default-template-pack/extras/grid.j2 | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/vasl_templates/webapp/data/default-template-pack/extras/grid.j2 b/vasl_templates/webapp/data/default-template-pack/extras/grid.j2 index 0b3b045..6225972 100644 --- a/vasl_templates/webapp/data/default-template-pack/extras/grid.j2 +++ b/vasl_templates/webapp/data/default-template-pack/extras/grid.j2 @@ -17,15 +17,11 @@ td { +{% set RANGE = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50] %} -{% for row in [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50] %} - {% if row <= ROWS %} - - {% for col in [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50] %} - {% if col <= COLS %} {% for col in RANGE %} {% if col <= COLS %}
{%endif%} - {%endfor%} - {%endif%} -{%endfor%} +{% for row in RANGE %} {% if row <= ROWS %} +
{%endif%} {%endfor%} +{%endif%} {%endfor%}