{% if stats and not error %}
{% set statsClasses = 'stats--' ~ settings.view %}
{% endif %} {% if not stats %}
{{ 'No stat has been selected yet.'|t }}
{% endif %} {% if error %}
{{ 'There was an error while generating the stats.'|t }}
{% endif %}