{% for key in dataDetour %} {% for z in dataDetour[key][box]%} {% if z.endswith("jpg") or z.endswith("jpeg") or z.endswith("png") or z.endswith("JPG") or z.endswith("JPEG") %} {% elif z.endswith("tif")%} {% else %}
{{z|safe}}
{% endif %} {% endfor %} {% endfor %}
{% for key in data %}
{% for z in data[key][showbar]%} {% if z.endswith("jpg") or z.endswith("jpeg") or z.endswith("png") or z.endswith("JPG") or z.endswith("JPEG") %} {% elif z.endswith("tif")%} {% else %}
{{z|safe}}
{% endif %} {% endfor %}
{% for z in data[key][box]%} {% if z.endswith("jpg") or z.endswith("jpeg") or z.endswith("png") or z.endswith("JPG") or z.endswith("JPEG") %} {% elif z.endswith("tif")%} {% else %}
{{z|safe}}
{% endif %} {% endfor %}
{{key}}
{% endfor %}