{% load render_table from django_tables2 %}
{% load i18n %}
{% if managers.data %}
    <div class="card">
        <div class="card-header position-relative" id="clubListHeading">
            <a class="font-weight-bold">
                <i class="fa fa-users"></i> {% trans "Club managers" %}
            </a>
        </div>
        {% render_table managers %}
    </div>

    <hr>
{% endif %}

{% if member_list.data %}
    <div class="card">
        <div class="card-header position-relative" id="clubListHeading">
            <a class="stretched-link font-weight-bold" href="{% url 'member:club_members' pk=club.pk %}">
                <i class="fa fa-users"></i> {% trans "Club members" %}
            </a>
        </div>
        {% render_table member_list %}
    </div>

    <hr>
{% endif %}

{% if history_list.data %}
    <div class="card">
        <div class="card-header position-relative" id="historyListHeading">
            <a class="font-weight-bold">
                <i class="fa fa-euro"></i> {% trans "Transaction history" %}
            </a>
        </div>
        <div id="history_list">
            {% render_table history_list %}
        </div>
    </div>
{% endif %}