{% extends 'creme_core/bricks/base/table.html' %} {% load i18n creme_bricks %} {% block brick_extra_class %}{{block.super}} reports-preview-brick{% endblock %} {% block brick_header_title %} {% if empty_message %}{% translate 'Preview' context 'reports-preview' as title %} {% brick_header_title title=title %} {% elif lines|length < limit_to %} {% brick_header_title title=_('Preview ({count} line)') plural=_('Preview ({count} lines)') count=lines|length %} {% else %} {% brick_header_title title=_('Preview ({count} line)') plural=_('Preview of the {count} first lines') count=lines|length %} {% endif %} {% endblock %} {% block brick_table_head %} {% if empty_message %} {{empty_message}} {% else %} {% for column in flat_columns %}{% brick_table_column title=column %}{% endfor %} {% endif %} {% endblock %} {% block brick_table_body %} {% if not empty_message %} {% for line in lines %} {% for val in line %}{{val}} {% endfor %} {% endfor %} {% endif %} {% endblock %}