{% if elements %} {% if sum %}

Total : {{ sum }}€

{% endif %}
{% for e in elements %}
{{ e.title }} le {{ e.date|date:"SHORT_DATE_FORMAT" }} : {{ e.eur_value }}€
{% endfor %}
{% else %}

{% firstof default_nothing "Nothing here..." %}

{% endif %}