Tweaked the "grid" extras template to not generate so many blank lines.

master
Pacman Ghost 4 years ago
parent 509e326b90
commit 403938e191
  1. 12
      vasl_templates/webapp/data/default-template-pack/extras/grid.j2

@ -17,15 +17,11 @@ td {
</style>
</head>
{% 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] %}
<table>
{% 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 %}
<tr>
{% 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 %} <td> {%endif%}
{%endfor%}
{%endif%}
{%endfor%}
{% for row in RANGE %} {% if row <= ROWS %}
<tr> {% for col in RANGE %} {% if col <= COLS %} <td> {%endif%} {%endfor%}
{%endif%} {%endfor%}
</table>
</html>

Loading…
Cancel
Save