{% if stat and not error %}
{% endif %} {% if not stat %}
{{ 'Could not find the selected stat.'|t }}
{% endif %} {% if error %}
{{ 'There was an error while generating the stats.'|t }}
{% endif %}