{% load i18n %} <table class="transaction-table"> <tr> <th>{% trans 'attribute' %}</th> <th>{% trans 'before' %}</th> <th>{% trans 'after' %}</th> </tr> {% include "history_row.html" with rows=table.rows %} {% for header, ending_rows in table.ending_tables %} <tr> <th colspan="3" class="ending-header">{% trans 'ending' %} {{ header }}:</th> </tr> {% include "history_row.html" with rows=ending_rows %} {% endfor %} </table>