{% load staticfiles %} Golem chatbot
{% for m in messages %}
{#

{{ m.message.text }}

#} {% if m.is_response %} {% endif %}
{% if m.message.attachment.type == 'template' %} {% if m.message.attachment.payload.template_type == 'buttons' %}
{{ m.message.text }}
{% for b in m.message.attachment.buttons %} {% if b.type == 'web_url' %} {% elif b.type == 'postback' %} {% endif %} {% endfor %}
{% elif m.message.attachment.payload.template_type == 'generic' %}
{% for e in m.message.attachment.payload.elements %}

{{ e.title }}

{{ e.subtitle }}

{% for b in e.buttons %} {% if b.type == 'web_url' %} {% elif b.type == 'postback' %} {% endif %} {% endfor %}
{% endfor %}
{% endif %} {% else %}
{{ m.message.text }}
{% endif %} {% if m.message.quick_replies != None %}
{% for b in m.message.quick_replies %} {% endfor %}
{% endif %}
[{{ m.timestamp }}] {% if not m.is_response %} {% endif %}
{% endfor %}