Skip to content

Instantly share code, notes, and snippets.

@KhanMaytok
Created May 12, 2017 17:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KhanMaytok/57fe9db441dc1ff5c228ad0cf5dbd59d to your computer and use it in GitHub Desktop.
Save KhanMaytok/57fe9db441dc1ff5c228ad0cf5dbd59d to your computer and use it in GitHub Desktop.
Pasillos
{% for ticket in unique_seat_list %}
{% if (loop.index + 3) is divisible by(4) %}
<tr>
{% endif %}
<td>{{ ticket }}</td>
{% if ticket is divisible by(2) and ticket is not divisible by(4) %} <td class="pasillo"> --- </td> {% endif %}
{% if ticket is divisible by(4) %}</tr>{% endif %}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment