{% load golem_extras %} {% for message in messages %}
{% if message.response.elements %}
{% for element in message.response.elements %}
{{ element.title }}
{{ element.subtitle }}
{% for button in element.buttons %}
{{ button.title }}
{% endfor %}
{% endfor %}
{% else %}
{% if message.text %} {{ message.text }} {% else %} {% with log_text=message.entities|entity:"_log_text" %} {% if log_text %} {{ log_text }} {% else %} {{ message.type }} {% endif %} {% endwith %} {% endif %}
{% if message.response.buttons %} {% for button in message.response.buttons %}
{{ button.title }}
{% endfor %} {% endif %} {% if message.response.quick_replies %} {% for reply in message.response.quick_replies %}
{{ reply.title }}
{% endfor %} {% endif %}
{% endif %}
{% endfor %}