{% import "components.html" as c with context %} {% set url = c.messages_url(history.agent, history.contact) %}
{% if history.answer == "offline" %} {{ c.empty(t.text("contacts.offline")) }} {% elif history.answer != "listed" %}
{{ t.text("contacts." ~ history.answer, {"code": history.code}) }}
{% else %} {% include "history_rows.html" %} {% if not history.turns %}{{ c.empty(t.text("history.empty")) }}{% endif %} {% endif %} {% include "history_end.html" %}
{# the column opens at its newest message, the way a chat is picked up #}