{% extends 'creme_core/bricks/base/paginated-table.html' %} {% load i18n creme_bricks creme_widgets %} {% block brick_extra_class %}{{block.super}} crudity-history-brick{% endblock %} {% block brick_header_title %} {% widget_icon ctype=ct size='brick-header' as ct_icon %} {% with count=page.paginator.count %} {% if count %} {% blocktranslate count count=count with model=ct asvar title %}{{count}} History item - {{model}}{% plural %}{{count}} History items - {{model}}{% endblocktranslate %} {% else %} {% blocktranslate with model=ct asvar title %}History items - {{model}}{% endblocktranslate %} {% endif %} {% brick_header_title title=title icon=ct_icon %} {% endwith %} {% endblock %} {% block brick_table_columns %} {% brick_table_column title=_('Entity') status='primary' %} {% brick_table_column title=_('Created') %} {% brick_table_column title=_('Action') %} {% brick_table_column title=_('Description') %} {% endblock %} {% block brick_table_rows %} {% for history in page.object_list %} {% widget_entity_hyperlink history.get_entity user %} {{history.created}} {{history.action}} {{history.source}} {{history.description}} {% endfor %} {% endblock %} {% block brick_table_empty %} {% blocktranslate with ctype=ct %}No history for «{{ctype}}»{% endblocktranslate %} {% endblock %}