{% extends "family/base.html" %}
{% comment %}
Copyright (C) 2018-2025 by BDE ENS Paris-Saclay
SPDX-License-Identifier: GPL-3.0-or-later
{% endcomment %}
{% load render_table from django_tables2 %}
{% load i18n perms %}

{% block profile_content %}
{% if member_list.data %}
<div class="card">
    <div class="card-header position-relative" id="clubListHeading">
        <i class="fa fa-users"></i> {% trans "Family members" %}
    </div>
    {% render_table member_list %}
</div>

<div class="my-4"></div>
{% endif %}

{% if achievement_list.data %}
<div class="card">
    <div class="card-header position-relative">
        <i class="fa fa-trophy"></i> {% trans "Completed challenges" %}
    </div>
    {% render_table achievement_list %}
</div>
{% endif %}
{% endblock %}