{% extends 'creme_core/bricks/base/paginated-table.html' %} {% load i18n creme_bricks creme_perms %} {% load url from creme_core_tags %} {% block brick_extra_class %}{{block.super}} creme_config-history-brick{% endblock %} {% block brick_header_title %} {% brick_header_title title=_('{count} Used relation type') plural=_('{count} Used relation types') empty=_('Used relation types') icon='relations' %} {% endblock %} {% block brick_header_actions %} {% brick_header_action id='add' url='creme_config__create_history_configs'|url label=_('Add some relationship types') enabled=user|has_perm_to_admin:'creme_core' %} {% endblock %} {% block brick_table_columns %} {% brick_table_column title=_('Type') %} {% brick_table_column title=_('Action') status='action' %} {% endblock %} {% block brick_table_rows %} {% with admin_perm=user|has_perm_to_admin:'creme_core' rm_url='creme_config__remove_history_config'|url %} {% for history_item in page.object_list %}