{% for items in data %}
{% for item in items %}
{% if item.t %}
{{ item.t }}
{% endif %}
{% if item.p %}
{{ item.p }}{% endif %}
{% if forloop.last %}
{% endif %}
{% empty %}
{% endfor %} {% endfor %}