<div class="container pb-5">
    {% load django_tables2 %}

    {% if edited_relations %}
    <div class="container pt-5 pb-2 text-center">
        <h3 class="display-4">Edited Relations</h3>
    </div>
    {% for tit, table in edited_relations %}

    <div class="container pt-4 pb-2 px-0">

        <h3>{{tit}}</h3>
    </div>

    <div class="container pb-4 ml-3">
        {% render_table table %}
    </div>
    {% endfor %}
    {% endif %}

    {% if edited_entities %}
     <div class="container pt-5 pb-2 text-center">
        <h3 class="display-4">Edited Entities</h3>
    </div>
    {% for tit, table in edited_entities %}

    <div class="container pt-4 pb-2 px-0">

        <h3>{{tit}}</h3>
    </div>

    <div class="container pb-4 ml-3">
        {% render_table table %}
    </div>
    {% endfor %}
    {% endif %}

    {% if edited_other %}
     <div class="container pt-5 pb-2 text-center">
        <h3 class="display-4">Edited Other</h3>
    </div>
    {% for tit, values in edited_other%}

    <div class="container pt-4 pb-2 px-0">

        <h3>{{tit}}</h3>
    </div>
    <div class="container ml-5 pb-4">
        <p>{{values|join:'&nbsp;&nbsp;&nbsp;&nbsp; | &nbsp;&nbsp;&nbsp;&nbsp;'}}</p>
    </div>
    {% endfor %}
    {% endif %}
</div>