{% extends 'creme_core/bricks/base/table.html' %} {% load creme_bricks %} {% block brick_extra_class %}{{block.super}} creme_core-statistics-brick{% endblock %} {% block brick_table_head %}{% endblock %} {% block brick_table_rows %} {% for item in items %} {{item.label}} {% with stats=item.retrieve %} {% if stats %} {% if stats|length == 1 %} {{stats.0}} {% else %} {% endif %} {% else %} — {% endif %} {% endwith %} {% endfor %} {% endblock %}