{% if title is not empty %}

{{ title }}

{% endif %}
{% if (mode == "both" and results is not empty and latest is not empty) or (mode == "latest" and latest is not empty) or(mode == "history" and results is not empty) %} {% if mode == 'both' %}
{% endif %} {% if mode == 'both' or mode == 'latest' %}
{% endif %} {% if mode == 'both' %}
{% endif %} {% if mode == 'both' or mode == 'history' %}
{% endif %} {% if mode == 'both' %}
{% endif %} {% else %} {% endif %}